Python Coras is a python SDK for the coras.io API.
Project description
===============================
Python Coras
===============================
PythonCorasLib
=================
This API SDK was automatically generated by APIMATIC BETA v2.0
Due to the UniRest package dependency this SDK only works under Python 2.7
It will not work using Python 3.x
How To Configure:
=================
The generated code might need to be configured with your API credentials. To do that,
provide the credentials and configuration values as constructor parameters for the controllers
How To Build:
=============
The generated code uses Python libraries named UniRest and Jsonpickle.
PIP is a popular tool for managing python packages[1].
To resolve these packages:
1) From terminal/cmd navigate to the root directory
2) Invoke 'pip install -r requirements.txt'
Note: You will need internet access to resolve these dependencies.
How To Use:
===========
The following shows how to make invoke the APIController controller.
It is also shown in [2].
1. Create a "APIControllerTest.py" file in the root directory.
2. Add the following import statement
'from PythonCorasLib.Controllers.APIController import *'
3. Create a new instance using 'controller = APIController()'
4. Invoke an endpoint with the appropriate parameters, for example
'response = controller.getsection_retrieve(<required parameters if any>)'
5. "response" will now be an object of type SectionSerializer.
6. To test the response you get, print out a property of "response",
for example 'print response.url'.
[1] PIP - https://pip.pypa.io
[2] from PythonCorasLib.Controllers.APIController import *
response = controller.getsection_retrieve()
print response.url
#or you can print more information
print response.resolve_names()
Example usage:
===========
from CorasLib import APIController
from datetime import datetime
c = APIController(authorization='Token a7238841b1d4c6170b0919d401cc4fe7f10acdb5')
now =str(datetime.utcnow())
#Create Event
event = c.create_event_create(name="Phil's Band", venue=venue.id, start=now, doors=now, announce=now, general_onsale=now)
#list venues
for v in c.get_venue_list(): print v.name
#list events
for e in c.get_event_list(): print e.name
History
-------
0.0.1 (2015-10-20)
---------------------
* First release on PyPI.
Python Coras
===============================
PythonCorasLib
=================
This API SDK was automatically generated by APIMATIC BETA v2.0
Due to the UniRest package dependency this SDK only works under Python 2.7
It will not work using Python 3.x
How To Configure:
=================
The generated code might need to be configured with your API credentials. To do that,
provide the credentials and configuration values as constructor parameters for the controllers
How To Build:
=============
The generated code uses Python libraries named UniRest and Jsonpickle.
PIP is a popular tool for managing python packages[1].
To resolve these packages:
1) From terminal/cmd navigate to the root directory
2) Invoke 'pip install -r requirements.txt'
Note: You will need internet access to resolve these dependencies.
How To Use:
===========
The following shows how to make invoke the APIController controller.
It is also shown in [2].
1. Create a "APIControllerTest.py" file in the root directory.
2. Add the following import statement
'from PythonCorasLib.Controllers.APIController import *'
3. Create a new instance using 'controller = APIController()'
4. Invoke an endpoint with the appropriate parameters, for example
'response = controller.getsection_retrieve(<required parameters if any>)'
5. "response" will now be an object of type SectionSerializer.
6. To test the response you get, print out a property of "response",
for example 'print response.url'.
[1] PIP - https://pip.pypa.io
[2] from PythonCorasLib.Controllers.APIController import *
response = controller.getsection_retrieve()
print response.url
#or you can print more information
print response.resolve_names()
Example usage:
===========
from CorasLib import APIController
from datetime import datetime
c = APIController(authorization='Token a7238841b1d4c6170b0919d401cc4fe7f10acdb5')
now =str(datetime.utcnow())
#Create Event
event = c.create_event_create(name="Phil's Band", venue=venue.id, start=now, doors=now, announce=now, general_onsale=now)
#list venues
for v in c.get_venue_list(): print v.name
#list events
for e in c.get_event_list(): print e.name
History
-------
0.0.1 (2015-10-20)
---------------------
* First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
coras-0.0.2.tar.gz
(25.9 kB
view details)
Built Distribution
coras-0.0.2-py2-none-any.whl
(41.3 kB
view details)
File details
Details for the file coras-0.0.2.tar.gz
.
File metadata
- Download URL: coras-0.0.2.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a921bd7943aac01d5b5e3ac1da239e2576bdc5c147af85f4e5c69e2b1a61e912 |
|
MD5 | b76ffe9b7aa1a045bae5fc5480530327 |
|
BLAKE2b-256 | f754ffeeabcee941a0cf0f6ad07a3982349f29426a2267ab359bf19d2e42162a |
File details
Details for the file coras-0.0.2-py2-none-any.whl
.
File metadata
- Download URL: coras-0.0.2-py2-none-any.whl
- Upload date:
- Size: 41.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fe88f03e484f195783822e57374d2598c120a5076ebf9014a154f4c6c79ef64 |
|
MD5 | 0533bae0cb01fac23f75b3a51cebe77f |
|
BLAKE2b-256 | 37526fcd78b3c3eba759978fc5f6681ccf6d8cbf6eca7fa579107f14cd0849b2 |