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 ooti-api
    pip install ooti-api
    
  3. 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 TO 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/

update ooti package version

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

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.3.tar.gz (32.7 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.3-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ooti-api-0.0.3.tar.gz
  • Upload date:
  • Size: 32.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.1

File hashes

Hashes for ooti-api-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a45cb69f99531660339d34a2ff39895a5ec7c5abd36a7524d18232ca1f714dd4
MD5 3f52d445148f9495d82c2d7982123851
BLAKE2b-256 070c7e2732dde9067dfedab6dabaff1ad811a08c3decf2f1d612ff1d4b457edb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ooti_api-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 34.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.1

File hashes

Hashes for ooti_api-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fd14f02ca4e19f178e06e44db84ae96ac2774db1b618f754fe954cc699db25c1
MD5 bc89fc14d2be4023ba21ac3b1b922071
BLAKE2b-256 3bcd972e8c2c2ddeb76a4cf167087a241a4012d31fe602950d1faf755c1d2e4e

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