A python wrapper for FattureInCloud REST API
Project description
python-fattureincloud
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"
)
# Get all mails
mail = client.mail.lista()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ceb7ecbaf8c3bf2483379eb7147c946b326e55418d94968fee5bd73cd6d9939 |
|
MD5 | 8fe3dd891269521b635059f142f9b22e |
|
BLAKE2b-256 | a649558db76fb9b9452b3157eb49b3e83f402b321382687c2ce34c7730d90e99 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 852ad7b54363b4b657e78ea07501b8d421e4a23c4de319f5c680f74703b054ff |
|
MD5 | 8bcf7482c667f612b1efd7fd15d18c6f |
|
BLAKE2b-256 | bc6a66e3db86530469fa5f7ec620c07e2eab5fe512fb78a947e5157ebc00835f |