A library for uploading data to and downloading reports from NEMO cloud solution
Project description
NEMO Library
This library helps you with access to NEMO APIs
Installation
pip install nemo_library
configuration
please create a file “config.ini”. This is an example for the content:
[nemo_library] nemo_url = https://enter.nemo-ai.com userid = <your userid> password = <your password>
usage
from nemo_library import NemoLibrary
nl = NemoLibrary()
nl.UploadFile(filename="test.csv")
df = nl.LoadReport(report_guid="b82cfed8-81a7-44e0-b3da-c76454540697")
LoadReport method
Load a report from NEMO and return this as pandas dataframe
report_guid
This methode takes 1 mandatory parameter, the report_guid. You can find “your” guid in NEMO meta data. Just open the definition of the report in meta data and copy the GUID from your browser URL.
The report “(SAMPLE) Replenishment Time Analysis Purchased Parts” for example has this URL: https://enter.nemo-ai.com/nemo/metadata/report/b82cfed8-81a7-44e0-b3da-c76454540697 and thus the GUID you need is then “b82cfed8-81a7-44e0-b3da-c76454540697”
max_pages
By default all pages from the report are loaded. You can optionally restrict the amount of data by providing max_pages parameter and you’ll get not more than this number of pages (usually 1 page holds 20 records)
Contributions
Contributions are welcome! If you would like to suggest improvements or have found a bug, please open an issue or submit a pull request.
License
This project is released under the Unlicense. You can find the full text of the Unlicense in the UNLICENSE file. This means that the code is released into the public domain, and you are free to use, modify, distribute, and do whatever you want with it, without any restrictions or requirements.
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
Hashes for nemo_library-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88c67e3375553218a4a118af56970b07db4a8dadd118ae59fdaf1fa6ef0561fe |
|
MD5 | e05ae5e75b1c0dd26695ee1e7ea60cfe |
|
BLAKE2b-256 | 0d7247551c6599f27b3f949a336e7f6ac4d8d5b909cda68b0978514b175f1f56 |