Skip to main content

Python client for https://server.odecloud.app

Project description

Official OdeServer Python API's Client

Getting Started & Usage

  1. Installation:
  • Use Poetry:
    $ poetry add odecloud
    
  • Or, use Pip:
    $ pip install odecloud
    
  1. Instantiate your connection to OdeCloud's API:
  • If you don't know your client credentials:

    api = Api('https://server.odecloud.app/api/v1') # All API calls will be made to this domain.
    api.login('your-email@here.com', 'your_password')
    
  • If you already know your client credentials:

    api = Api(
        base_url='https://server.odecloud.app/api/v1', # All API calls will be made to this domain
        client_key='YOUR CLIENT KEY',
        client_secret='YOUR CLIENT SECRET',
    )
    
  1. Now, any calls can be made to OdeCloud's API. Examples below:
    api.comments.get(createdBy=random_user_id) # GET /api/v1/comments?createdBy=random_user_id/
    api.comments.post(data=expected_payload) # POST /api/v1/comments/
    api.comments(random_comment_id).patch(data=expected_payload) # PATCH /api/v1/comments/random_comment_id/
    api.comments(random_comment_id).delete() # DELETE /api/v1/comments/random_comment_id/
    

Happy coding!

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odecloud-0.13.7.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odecloud-0.13.7-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file odecloud-0.13.7.tar.gz.

File metadata

  • Download URL: odecloud-0.13.7.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Linux/5.4.109+

File hashes

Hashes for odecloud-0.13.7.tar.gz
Algorithm Hash digest
SHA256 e53c191ee4cf56d33f87a14dd4dcf8348e5be4c331bd9e68abd7026424b407f5
MD5 2402d79eea287532aeb6e80379088cbe
BLAKE2b-256 6391ffe10bc371c622cb364f4755d6424ccc3473445ccb2357eba0e3096a8396

See more details on using hashes here.

File details

Details for the file odecloud-0.13.7-py3-none-any.whl.

File metadata

  • Download URL: odecloud-0.13.7-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Linux/5.4.109+

File hashes

Hashes for odecloud-0.13.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cf28247d58b77821bc4a5cdc37278dc5fb6ad6ceb230121ad82e4680fd2a9993
MD5 f49c58258a21f304d12453c2b37d5586
BLAKE2b-256 a7ec5eab96f889df1c5b886192d26c9b007740d34db18b56fa1e4f6d54aa11ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page