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.8.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.8-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: odecloud-0.13.8.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.8.tar.gz
Algorithm Hash digest
SHA256 34b5f9ede7eb4e66abc3963ffa3317c46de2c3a1fef8b50211e1cd25fe3f8035
MD5 b6aa0a6b7ead5a4f6d8ece60badbfd0d
BLAKE2b-256 522655490d3f62359670b5b87b63ccd16bbee6e5598022cd68efb4120e39f673

See more details on using hashes here.

File details

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

File metadata

  • Download URL: odecloud-0.13.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5f3e057781b1a1c2a1ffa99284eed8ed62b7e620a787020ff8a4e20904f393af
MD5 f00fb849b6f5167a52640716a7491961
BLAKE2b-256 c65aab52864970662ac756e89e46253519e4c7c672a287947672881a22db7d51

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