Skip to content

Commit 9238793

Browse files
author
Julien Castets
committed
Rename OCS to Scaleway
labs.online.net is over. We become Scaleway! Module name becomes scw_sdk Package name is now scaleway-sdk
1 parent def7e30 commit 9238793

16 files changed

+50
-51
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# http://nedbatchelder.com/code/coverage/config.html#config
22

33
[run]
4-
source = ocs_sdk
4+
source = scaleway
55
branch = True
66
omit = */tests/*
77

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ChangeLog
1414
0.4.1 (2015-04-02)
1515
------------------
1616

17-
* Update URLs from cloud.online.net.scaleway.com.
17+
* Update URLs from cloud.online.net to scaleway.com.
1818

1919
0.4.0 (2015-03-11)
2020
------------------

LICENSE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
BSD 2-Clause License
22
--------------------
33

4-
Copyright (c) 2013-2015, `Online Labs <http://labs.online.net>`_ and
4+
Copyright (c) 2013-2015, `Scaleway <https://www.scaleway.com>`_ and
55
individual contributors.
66
All rights reserved.
77

README.rst

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
python-scaleway
2-
===============
1+
Scaleway SDK
2+
============
33

4-
This package provides tools to query the REST APIs of
5-
`Online.net's cloud services`_.
4+
This package provides tools to query the REST APIs of `Scaleway`_.
65

76
.. image:: https://img.shields.io/pypi/v/ocs-sdk.svg?style=flat
87
:target: https://pypi.python.org/pypi/ocs-sdk
@@ -33,7 +32,7 @@ The package is available on pip. To install it in a virtualenv:
3332
3433
virtualenv my_virtualenv
3534
source my_virtualenv/bin/activate
36-
pip install ocs-sdk
35+
pip install scaleway-sdk
3736
3837
3938
General principle
@@ -49,10 +48,10 @@ you only need to call the following pythonic code:
4948

5049
.. code-block:: python
5150
52-
>>> from ocs_sdk.apis import DummyAPI
51+
>>> from scaleway.apis import DummyAPI
5352
>>> DummyAPI().query().foo.bar.get()
5453
55-
The magic here lies in ``ocs_sdk.apis.*API`` instances, which all have a
54+
The magic here lies in ``scaleway.apis.*API`` instances, which all have a
5655
``query`` method returning a ``slumber.API`` object. The latter handling all
5756
the excruciating details of the requests.
5857

@@ -74,7 +73,7 @@ Examples
7473

7574
.. code-block:: python
7675
77-
>>> from ocs_sdk.apis import AccountAPI
76+
>>> from scaleway.apis import AccountAPI
7877
>>> api = AccountAPI(auth_token='') # Set your token here!
7978
>>> print api.query().organizations.get()
8079
{u'organizations': [...]}
@@ -84,7 +83,7 @@ Examples
8483

8584
.. code-block:: python
8685
87-
>>> from ocs_sdk.apis import ComputeAPI
86+
>>> from scaleway.apis import ComputeAPI
8887
>>> api = ComputeAPI(auth_token='') # Set your token here!
8988
>>> print api.query().servers.get()
9089
{u'servers': [...]}
@@ -94,7 +93,7 @@ Examples
9493

9594
.. code-block:: python
9695
97-
>>> from ocs_sdk.apis import ComputeAPI
96+
>>> from scaleway.apis import ComputeAPI
9897
>>> api = ComputeAPI(auth_token='') # Set your token here!
9998
>>> server_id = '' # Set a server ID here!
10099
>>> print api.query().servers(server_id).get()
@@ -106,7 +105,7 @@ Examples
106105

107106
.. code-block:: python
108107
109-
>>> from ocs_sdk.apis import AccountAPI
108+
>>> from scaleway.apis import AccountAPI
110109
>>> api = AccountAPI(auth_token='') # Set your token here!
111110
>>> print api.has_perm(service='compute', name='servers:read',
112111
... resource='9a096d36-6bf9-470f-91df-2398aa7361f7')
@@ -121,7 +120,7 @@ Assuming you are in a `virtualenv`_:
121120
.. code-block:: bash
122121
123122
pip install -e .
124-
python -c 'from ocs_sdk.apis import AccountAPI'
123+
python -c 'from scaleway.apis import AccountAPI'
125124
# it works!
126125
127126
@@ -135,9 +134,9 @@ To submit a patch, you'll need to test your code. To run tests:
135134
pip install nose coverage pep8 pylint
136135
python setup.py nosetests --with-coverage
137136
# (...)
138-
pep8 ocs_sdk
137+
pep8 scaleway
139138
# (...)
140-
pylint ocs_sdk
139+
pylint scaleway
141140
# (...)
142141
143142
* coverage score should never be lower than before your patch.
@@ -177,7 +176,7 @@ License
177176
This software is licensed under a `BSD 2-Clause License`_.
178177

179178

180-
.. _Online.net's cloud services: https://cloud.online.net
179+
.. _Scaleway: https://www.scaleway.com/
181180
.. _Slumber: http://slumber.readthedocs.org/
182181
.. _API documentation: https://doc.cloud.online.net/api/
183182
.. _virtualenv: http://virtualenv.readthedocs.org/en/latest/

ocs_sdk/__init__.py renamed to scaleway/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
#
33
# Copyright (c) 2013-2014 Online SAS and Contributors. All Rights Reserved.
4-
# Julien Castets <jcastets@ocs.online.net>
4+
# Julien Castets <jcastets@scaleway.com>
55
#
66
# Licensed under the BSD 2-Clause License (the "License"); you may not use this
77
# file except in compliance with the License. You may obtain a copy of the

ocs_sdk/apis/__init__.py renamed to scaleway/apis/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22
#
33
# Copyright (c) 2013-2014 Online SAS and Contributors. All Rights Reserved.
4-
# Julien Castets <jcastets@ocs.online.net>
5-
# Kevin Deldycke <kdeldycke@ocs.online.net>
4+
# Julien Castets <jcastets@scaleway.com>
5+
# Kevin Deldycke <kdeldycke@scaleway.com>
66
#
77
# Licensed under the BSD 2-Clause License (the "License"); you may not use this
88
# file except in compliance with the License. You may obtain a copy of the
@@ -20,7 +20,7 @@
2020
class API(object):
2121

2222
base_url = None
23-
user_agent = 'ocs-sdk/%s Python/%s %s' % (
23+
user_agent = 'scw-sdk/%s Python/%s %s' % (
2424
__version__, ' '.join(sys.version.split()), platform.platform()
2525
)
2626

ocs_sdk/apis/api_account.py renamed to scaleway/apis/api_account.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# -*- coding: utf-8 -*-
22
#
33
# Copyright (c) 2013-2014 Online SAS and Contributors. All Rights Reserved.
4-
# Julien Castets <jcastets@ocs.online.net>
5-
# Romain Gay <rgay@ocs.online.net>
6-
# Kevin Deldycke <kdeldycke@ocs.online.net>
4+
# Julien Castets <jcastets@scaleway.com>
5+
# Romain Gay <rgay@scaleway.com>
6+
# Kevin Deldycke <kdeldycke@scaleway.com>
77
#
88
# Licensed under the BSD 2-Clause License (the "License"); you may not use this
99
# file except in compliance with the License. You may obtain a copy of the

ocs_sdk/apis/api_compute.py renamed to scaleway/apis/api_compute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22
#
33
# Copyright (c) 2013-2014 Online SAS and Contributors. All Rights Reserved.
4-
# Julien Castets <jcastets@ocs.online.net>
5-
# Kevin Deldycke <kdeldycke@ocs.online.net>
4+
# Julien Castets <jcastets@scaleway.com>
5+
# Kevin Deldycke <kdeldycke@scaleway.com>
66
#
77
# Licensed under the BSD 2-Clause License (the "License"); you may not use this
88
# file except in compliance with the License. You may obtain a copy of the

ocs_sdk/apis/api_metadata.py renamed to scaleway/apis/api_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
#
33
# Copyright (c) 2013-2014 Online SAS and Contributors. All Rights Reserved.
4-
# Julien Castets <jcastets@ocs.online.net>
4+
# Julien Castets <scaleway.com>
55
#
66
# Licensed under the BSD 2-Clause License (the "License"); you may not use this
77
# file except in compliance with the License. You may obtain a copy of the

ocs_sdk/tests/__init__.py renamed to scaleway/tests/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22
#
33
# Copyright (c) 2013-2014 Online SAS and Contributors. All Rights Reserved.
4-
# Julien Castets <jcastets@ocs.online.net>
5-
# Kevin Deldycke <kdeldycke@ocs.online.net>
4+
# Julien Castets <jcastets@scaleway.com>
5+
# Kevin Deldycke <kdeldycke@scaleway.com>
66
#
77
# Licensed under the BSD 2-Clause License (the "License"); you may not use this
88
# file except in compliance with the License. You may obtain a copy of the

0 commit comments

Comments
 (0)