Skip to main content

A python wrapper for FattureInCloud REST API

Project description

python-fattureincloud

Code style: black Python package codecov

A python wrapper for the FattureInCloud REST API.

📦 Installation

Change directory and create a new project as in this example:

$ pip install python-fattureincloud

🔑 API Credentials

The FattureInCloudAPI needs api_uid and api_key parameters to make requests.

from fattureincloud.client import FattureInCloudAPI


client = FattureInCloudAPI(
    api_uid="your_api_uid", 
    api_key="your_api_key"
)

🚀️ Usage

At the moment, only method to read information are implemented. Every model has list method with different parameter to filter results.

For each model there is a set of methods to get a specific element.

⚫ Anagrafica

# Get all customers 
customers = client.clienti().lista()

# Get all suppliers
suppliers = client.fornitori().lista()

⚫ Prodotti

# Get all products 
customers = client.prodotti().lista()

⚫ Documenti

The following example show how you can get all invoices. But you can use all the following document types: fatture, proforma, ordini, preventivi, ndc, ricevute, ddt.

# Get all documents 
invoices = client.fatture().lista()

invoice_details = client.fatture.dettagli(
    _id="invoice_id", 
    token="invoice_token"
)

info = clienti.fatture.info(anno_competenza=2021)

invoice_infomail = client.fatture.infomail(
    _id="invoice_id", 
    token="invoice_token"
)

⚫ Acquisti

# Get all purchases 
acquisti = client.acquisti.lista()

acquisti_details = client.acquisti.dettagli(
    _id="acquisti_id"
)

⚫ Corrispettivi

# Get all payments 
corrispettivi = client.corrispettivi.lista()

⚫ Magazzino

# Get all merchandise 
arrivimerce = client.arrivimerce.lista()

arrivimerce_details = client.arrivimerce.dettagli(
    _id="arrivimerce_id"
)

⚫ Mail

# Get all mails 
mail = client.mail.lista()

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

python-fattureincloud-0.0.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

python_fattureincloud-0.0.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file python-fattureincloud-0.0.1.tar.gz.

File metadata

  • Download URL: python-fattureincloud-0.0.1.tar.gz
  • Upload date:
  • Size: 7.0 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.9.4

File hashes

Hashes for python-fattureincloud-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1ceb7ecbaf8c3bf2483379eb7147c946b326e55418d94968fee5bd73cd6d9939
MD5 8fe3dd891269521b635059f142f9b22e
BLAKE2b-256 a649558db76fb9b9452b3157eb49b3e83f402b321382687c2ce34c7730d90e99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_fattureincloud-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 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.9.4

File hashes

Hashes for python_fattureincloud-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 852ad7b54363b4b657e78ea07501b8d421e4a23c4de319f5c680f74703b054ff
MD5 8bcf7482c667f612b1efd7fd15d18c6f
BLAKE2b-256 bc6a66e3db86530469fa5f7ec620c07e2eab5fe512fb78a947e5157ebc00835f

See more details on using hashes here.

Supported by

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