nemo-library


Namenemo-library JSON
Version 1.0.31 PyPI version JSON
download
home_pageNone
SummaryA library for uploading data to and downloading reports from NEMO cloud solution
upload_time2024-05-27 05:07:31
maintainerNone
docs_urlNone
authorGunnar Schug
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements bleach boto3 botocore build certifi charset-normalizer docutils et-xmlfile idna importlib_metadata jaraco.classes jaraco.context jaraco.functools jmespath keyring markdown-it-py mdurl more-itertools nh3 numpy openpyxl packaging pandas pandoc pkginfo plumbum ply Pygments pyproject_hooks python-dateutil pytz readme_renderer requests requests-toolbelt rfc3986 rich s3transfer setuptools six twine tzdata urllib3 webencodings wheel zipp
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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
   tenant = <your tenant>
   userid = <your userid>
   password = <your password>
   environment = [prod|dev|demo]

Methods
=======

Projects
--------

getProjectList method
~~~~~~~~~~~~~~~~~~~~~

Return list of projects (as pandas Dataframe)

.. code:: python

   from nemo_library import NemoLibrary

   nl = NemoLibrary()
   df = nl.getProjectList()

ProjectProperty method
~~~~~~~~~~~~~~~~~~~~~~

Get a project property

.. code:: python

   from nemo_library import NemoLibrary

   nl = NemoLibrary()
   val = nl.ProjectProperty(projectname=None,propertyname="ExpDateTo")

getImportedColumns method
~~~~~~~~~~~~~~~~~~~~~~~~~

Get list if imported columns of a project

.. code:: python

   from nemo_library import NemoLibrary
   import pandas as pd

   nl = NemoLibrary()
   df = nl.getImportedColumns(projectname="0 SNR")

setMetadataSortOrder method
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Set sort order of fields in a project

.. code:: python

   from nemo_library import NemoLibrary
   import pandas as pd

   # import field order from infozoom meta data export
   dfsort = pd.read_csv("Metadaten_AUTODATA_SORT_1.csv",delimiter=";")
   fieldlist = dfsort["Importname"].to_list()

   nl = NemoLibrary()
   nl.setMetadataSortOrder(projectname="AUTODATA",fields=fieldlist)

ReUploadFile method
~~~~~~~~~~~~~~~~~~~

ReUpload a CSV file into an existing project

.. code:: python

   from nemo_library import NemoLibrary

   nl = NemoLibrary()
   nl.ReUploadFile(projectname="21 CRM", filename="./csv/hubspot.csv")

Reports
-------

LoadReport method
~~~~~~~~~~~~~~~~~

Load a report from NEMO and return this as pandas dataframe

.. code:: python

   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)

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 <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.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "nemo-library",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Gunnar Schug",
    "author_email": "GunnarSchug81@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/18/4a/145087d35af1e6e79929a1bca7426da6d0c2611ef8095bbc1f18ea9b67c3/nemo_library-1.0.31.tar.gz",
    "platform": null,
    "description": "NEMO Library\n============\n\nThis library helps you with access to NEMO APIs\n\nInstallation\n============\n\n::\n\n   pip install nemo_library\n\nSources\n=======\n\nplease find all sources on github:\nhttps://github.com/H3rm1nat0r/nemo_library\n\nconfiguration\n=============\n\nplease create a file \u201cconfig.ini\u201d. This is an example for the content:\n\n::\n\n   [nemo_library]\n   nemo_url = https://enter.nemo-ai.com\n   tenant = <your tenant>\n   userid = <your userid>\n   password = <your password>\n   environment = [prod|dev|demo]\n\nMethods\n=======\n\nProjects\n--------\n\ngetProjectList method\n~~~~~~~~~~~~~~~~~~~~~\n\nReturn list of projects (as pandas Dataframe)\n\n.. code:: python\n\n   from nemo_library import NemoLibrary\n\n   nl = NemoLibrary()\n   df = nl.getProjectList()\n\nProjectProperty method\n~~~~~~~~~~~~~~~~~~~~~~\n\nGet a project property\n\n.. code:: python\n\n   from nemo_library import NemoLibrary\n\n   nl = NemoLibrary()\n   val = nl.ProjectProperty(projectname=None,propertyname=\"ExpDateTo\")\n\ngetImportedColumns method\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\nGet list if imported columns of a project\n\n.. code:: python\n\n   from nemo_library import NemoLibrary\n   import pandas as pd\n\n   nl = NemoLibrary()\n   df = nl.getImportedColumns(projectname=\"0 SNR\")\n\nsetMetadataSortOrder method\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nSet sort order of fields in a project\n\n.. code:: python\n\n   from nemo_library import NemoLibrary\n   import pandas as pd\n\n   # import field order from infozoom meta data export\n   dfsort = pd.read_csv(\"Metadaten_AUTODATA_SORT_1.csv\",delimiter=\";\")\n   fieldlist = dfsort[\"Importname\"].to_list()\n\n   nl = NemoLibrary()\n   nl.setMetadataSortOrder(projectname=\"AUTODATA\",fields=fieldlist)\n\nReUploadFile method\n~~~~~~~~~~~~~~~~~~~\n\nReUpload a CSV file into an existing project\n\n.. code:: python\n\n   from nemo_library import NemoLibrary\n\n   nl = NemoLibrary()\n   nl.ReUploadFile(projectname=\"21 CRM\", filename=\"./csv/hubspot.csv\")\n\nReports\n-------\n\nLoadReport method\n~~~~~~~~~~~~~~~~~\n\nLoad a report from NEMO and return this as pandas dataframe\n\n.. code:: python\n\n   from nemo_library import NemoLibrary\n\n   nl = NemoLibrary()\n   df = nl.LoadReport(report_guid=\"b82cfed8-81a7-44e0-b3da-c76454540697\")\n\nproject_id\n^^^^^^^^^^\n\nOptional parameter. If you want to get reports for non-default ERP\nprojects. Please provide the project GUID (you can retrieve them by\nrunning getProjectList)\n\nreport_guid\n^^^^^^^^^^^\n\nThis methode takes 1 mandatory parameter, the report_guid. You can find\n\u201cyour\u201d guid in NEMO meta data. Just open the definition of the report in\nmeta data and copy the GUID from your browser URL.\n\nThe report \u201c(SAMPLE) Replenishment Time Analysis Purchased Parts\u201d for\nexample has this URL:\nhttps://enter.nemo-ai.com/nemo/metadata/report/b82cfed8-81a7-44e0-b3da-c76454540697\nand thus the GUID you need is then\n\u201cb82cfed8-81a7-44e0-b3da-c76454540697\u201d\n\nmax_pages\n^^^^^^^^^\n\nBy default all pages from the report are loaded. You can optionally\nrestrict the amount of data by providing max_pages parameter and you\u2019ll\nget not more than this number of pages (usually 1 page holds 20 records)\n\nContributions\n=============\n\nContributions are welcome! If you would like to suggest improvements or\nhave found a bug, please open an issue or submit a pull request.\n\nLicense\n=======\n\nThis project is released under the Unlicense. You can find the full text\nof the Unlicense in the `UNLICENSE <UNLICENSE>`__ file. This means that\nthe code is released into the public domain, and you are free to use,\nmodify, distribute, and do whatever you want with it, without any\nrestrictions or requirements.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A library for uploading data to and downloading reports from NEMO cloud solution",
    "version": "1.0.31",
    "project_urls": {
        "Github": "https://github.com/H3rm1nat0r/nemo_library",
        "NEMO": "https://enter.nemo-ai.com/nemo/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "907452032f60836dc624428512ab758ef441653dca627dea44384472d82d7d82",
                "md5": "14bb85439a5893567064f05da23ac48f",
                "sha256": "288b145c87b1930ba430abc031a01a3fd5546e25b0a769caeac7b55583d7b845"
            },
            "downloads": -1,
            "filename": "nemo_library-1.0.31-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "14bb85439a5893567064f05da23ac48f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 13827,
            "upload_time": "2024-05-27T05:07:29",
            "upload_time_iso_8601": "2024-05-27T05:07:29.758792Z",
            "url": "https://files.pythonhosted.org/packages/90/74/52032f60836dc624428512ab758ef441653dca627dea44384472d82d7d82/nemo_library-1.0.31-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "184a145087d35af1e6e79929a1bca7426da6d0c2611ef8095bbc1f18ea9b67c3",
                "md5": "a02539df604e5450cd8068777f081b3c",
                "sha256": "2a18b464c5f66c675895be5255f2ad53651beb9b3c8188111a05e25fc6b53659"
            },
            "downloads": -1,
            "filename": "nemo_library-1.0.31.tar.gz",
            "has_sig": false,
            "md5_digest": "a02539df604e5450cd8068777f081b3c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 15141,
            "upload_time": "2024-05-27T05:07:31",
            "upload_time_iso_8601": "2024-05-27T05:07:31.818165Z",
            "url": "https://files.pythonhosted.org/packages/18/4a/145087d35af1e6e79929a1bca7426da6d0c2611ef8095bbc1f18ea9b67c3/nemo_library-1.0.31.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-27 05:07:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "H3rm1nat0r",
    "github_project": "nemo_library",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "bleach",
            "specs": []
        },
        {
            "name": "boto3",
            "specs": []
        },
        {
            "name": "botocore",
            "specs": []
        },
        {
            "name": "build",
            "specs": []
        },
        {
            "name": "certifi",
            "specs": []
        },
        {
            "name": "charset-normalizer",
            "specs": []
        },
        {
            "name": "docutils",
            "specs": []
        },
        {
            "name": "et-xmlfile",
            "specs": []
        },
        {
            "name": "idna",
            "specs": []
        },
        {
            "name": "importlib_metadata",
            "specs": []
        },
        {
            "name": "jaraco.classes",
            "specs": []
        },
        {
            "name": "jaraco.context",
            "specs": []
        },
        {
            "name": "jaraco.functools",
            "specs": []
        },
        {
            "name": "jmespath",
            "specs": []
        },
        {
            "name": "keyring",
            "specs": []
        },
        {
            "name": "markdown-it-py",
            "specs": []
        },
        {
            "name": "mdurl",
            "specs": []
        },
        {
            "name": "more-itertools",
            "specs": []
        },
        {
            "name": "nh3",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "openpyxl",
            "specs": []
        },
        {
            "name": "packaging",
            "specs": []
        },
        {
            "name": "pandas",
            "specs": []
        },
        {
            "name": "pandoc",
            "specs": []
        },
        {
            "name": "pkginfo",
            "specs": []
        },
        {
            "name": "plumbum",
            "specs": []
        },
        {
            "name": "ply",
            "specs": []
        },
        {
            "name": "Pygments",
            "specs": []
        },
        {
            "name": "pyproject_hooks",
            "specs": []
        },
        {
            "name": "python-dateutil",
            "specs": []
        },
        {
            "name": "pytz",
            "specs": []
        },
        {
            "name": "readme_renderer",
            "specs": []
        },
        {
            "name": "requests",
            "specs": []
        },
        {
            "name": "requests-toolbelt",
            "specs": []
        },
        {
            "name": "rfc3986",
            "specs": []
        },
        {
            "name": "rich",
            "specs": []
        },
        {
            "name": "s3transfer",
            "specs": []
        },
        {
            "name": "setuptools",
            "specs": []
        },
        {
            "name": "six",
            "specs": []
        },
        {
            "name": "twine",
            "specs": []
        },
        {
            "name": "tzdata",
            "specs": []
        },
        {
            "name": "urllib3",
            "specs": []
        },
        {
            "name": "webencodings",
            "specs": []
        },
        {
            "name": "wheel",
            "specs": []
        },
        {
            "name": "zipp",
            "specs": []
        }
    ],
    "lcname": "nemo-library"
}
        
Elapsed time: 0.24808s