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
Sources
please find all sources on github: https://github.com/H3rm1nat0r/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> environment = [prod|dev|demo]
Methods
LoadReport method
Load a report from NEMO and return this as pandas dataframe
from nemo_library import NemoLibrary
nl = NemoLibrary()
df = nl.LoadReport(report_guid="b82cfed8-81a7-44e0-b3da-c76454540697")
project_id
Optional parameter. If you want to get reports for non-default ERP projects. Please provide the project GUID (you can retrieve them by running getProjectList)
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)
ReUploadFile method
ReUpload a CSV file into an existing project
from nemo_library import NemoLibrary
nl = NemoLibrary()
nl.ReUploadFile(projectname="21 CRM", filename="./csv/hubspot.csv")
getProjectList method
Return list of projects (as pandas Dataframe)
from nemo_library import NemoLibrary
nl = NemoLibrary()
df = nl.getProjectList()
ProjectProperty method
Get a project property
from nemo_library import NemoLibrary
nl = NemoLibrary()
val = nl.ProjectProperty(propertyname="ExpDateTo")
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
File details
Details for the file nemo_library-1.0.17.tar.gz
.
File metadata
- Download URL: nemo_library-1.0.17.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e5f414ee3d3dadb2800ffd08af8aee8775c67aacf3cdb0bda188fc58f464ec2 |
|
MD5 | 480f11b45178142a59f3a74de1ad58f3 |
|
BLAKE2b-256 | 967a81a83df9bf1785176f80d15e806ead5edbceee75b3a7c8812ac5236d4d07 |
Provenance
File details
Details for the file nemo_library-1.0.17-py3-none-any.whl
.
File metadata
- Download URL: nemo_library-1.0.17-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a004447f35a855b1aaf8b4258fbe845a786bb5dcadfdf5aaf6324ffda0523fd1 |
|
MD5 | 1c9c551943e931ad8d19687d74f06f92 |
|
BLAKE2b-256 | 80972de181c2b3c3850696ffddc0ae5a8f225c8cb97106f2e16022c35a20b50c |