Skip to main content

SDK for ooti

Project description


Logo

SDK OOTI

Explore the docs »

Swagger: Docs API · ooti.co

Table of Contents
  1. About The Project
  2. Getting Started
  3. How to use
  4. License

About The Project

This sdk is for all people wanting to use the ooti API

Built With

Getting Started

Prerequisites

Installation

  1. Install virtual Environment
    pip install pipenv
    pipenv shell --python 3.7
    
  2. Install requirements
    pip install -r requirements.txt
    

How to use

  1. Import
    import sdk_ooti
    
  2. Connect to the API
    my_account = sdk_ooti.Auth('email', 'password')
    my_account.connect()
    
  3. Do a request
    invoices = my_account.get_invoices_list()
    

See the example.py file for more examples

Conventions

Python:

  • Use docstring
  • 120 character limit
  • No python file greater than 2000 lines
  • Follow pep8 https://www.python.org/dev/peps/pep-0008/
  • In VisualStudio Code use ‘autopep8’: ("python.formatting.provider": "autopep8")

Branch names:

  • feature-xxx
  • improve-xxx
  • bug-xxx
  • hotfix-xxx

1 commit per modification

Use informative commit messages

learn more - https://gist.github.com/digitaljhelms/4287848

Key words:

  • TODO: something todo
  • TOOSLOW: Speed needs to be improved

Imports:

Good:

from operations.factories import OperationFactory
from discounts.selectors import discount_coefficient
from discounts.selectors import discount_list

Not good:

from operations.factories import OperationFactory
from discounts.selectors import (discount_coefficient,
                                 discount_list)

License

Copyright (C) 2016-2021 AxonePro S.A.S. legal@ooti.co All Rights Reserved

This file is part of axonepro.com.

Unauthorized copying of any file in this project, via any medium is strictly prohibited. Proprietary and confidential

axonepro.com can not be copied and/or distributed without the express permission of AXONEPRO.

HOW PUBLISHED IN PYPI

French tuto: https://sametmax.com/creer-un-setup-py-et-mettre-sa-bibliotheque-python-en-ligne-sur-pypi/

Twine documentation: https://twine.readthedocs.io/en/latest/

   python setup.py sdist bdist_wheel
   python3 -m twine check dist/*
   python3 -m twine upload -r pypi dist/*

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

ooti-api-0.0.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

ooti_api-0.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file ooti-api-0.0.1.tar.gz.

File metadata

  • Download URL: ooti-api-0.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.7

File hashes

Hashes for ooti-api-0.0.1.tar.gz
Algorithm Hash digest
SHA256 16d9f4eea1d1f067b619595976556f6f6610ce0ea59acab1e9e9cce43db9071d
MD5 e8bd0b263ecf755c4231ceeb395877c6
BLAKE2b-256 576322d0a31221b738332e75713f738fbb152fcfb81d2ce41f4276a0425e882b

See more details on using hashes here.

File details

Details for the file ooti_api-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ooti_api-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.7

File hashes

Hashes for ooti_api-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a91e6e0de66b8a3531d17e1b9d91d0bcab77ed2422c6f31850a637d104fa395
MD5 b688476f45484db0135e31b25872863d
BLAKE2b-256 77fb99561b0549c4894651662ffea0c3251b26c8b67b35fbf580002a568c7123

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