Skip to main content

Nomad Media SDK PIP

Project description

Prerequisites

  • PIP, Python 3.12

📘 Note

You can download PIP here and Python 3.12 here.

📘 Note

To learn how to update python 3.12 in your terminal, go here.

Setup

  • First, open up a terminal and navigate to the directory of the sample you want to run.
  • Then install the nomad_media_pip pip.
pip install nomad_media_pip

Importing Pip

  • To import the sdk from the pip, import the class from nomad_media_pip.nomad_sdk.
 from nomad_media_pip.src.nomad_sdk import Nomad_SDK
  • To initialize the sdk, create the class as shown below.
 nomad_sdk = Nomad_SDK(config)

Logging in

To log in to the sdk, in the config, enter the username/email of your user. Then enter your api key if you are using an api key, or your password.

Configure Environmental Variables

  • The format of the config is:
config = {
    "username": "username",
    "password": "password",
    "apiKey": "apiKey",
    "serviceApiUrl": "serverApiUrl",
    "apiType": "admin",
    "debugMode": "debugMode",
    "singleton": "singleton"
}

apiType: Specifies whether the function you are trying to run is admin or portal.

debugMode: Boolean that specifies when running functions, whether of not to print api call information.

singleton: Whether or not to only create one class instance.

Place the config in a file called config.py and import it into your project.

You are now ready to use the Pip in your project.

📘 Make sure to keep your configuration options secret and do not share them publicly.

Upgrading Pip

  • To upgrade the pip, use the following command:
pip install --upgrade nomad_media_pip

Nomad SDK References

Scroll down to the Nomad SDK section.

Nomad SDK References

Nomad SDK PIP Samples

Nomad SDK PIP Samples

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

nomad_media_pip-0.1.10a3.tar.gz (90.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nomad_media_pip-0.1.10a3-py3-none-any.whl (239.0 kB view details)

Uploaded Python 3

File details

Details for the file nomad_media_pip-0.1.10a3.tar.gz.

File metadata

  • Download URL: nomad_media_pip-0.1.10a3.tar.gz
  • Upload date:
  • Size: 90.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for nomad_media_pip-0.1.10a3.tar.gz
Algorithm Hash digest
SHA256 a503c30f08efe3cf1c8bb4ede862a8cf129b6657314da5d46b96bbd261d4dac7
MD5 e1c3df56a4747362723b062b5577dc15
BLAKE2b-256 a7fa953d73356ac742467785ad38de878ea23acbdb252da2eb4de89ae1de10d9

See more details on using hashes here.

File details

Details for the file nomad_media_pip-0.1.10a3-py3-none-any.whl.

File metadata

File hashes

Hashes for nomad_media_pip-0.1.10a3-py3-none-any.whl
Algorithm Hash digest
SHA256 4b6e7f9c1780e1036ef31f2d13cacd09d4cf5814a5696d3fd6d5eb6ff37f0e7f
MD5 ff9911ada2fb8ac9b2a802ff3eb04d0a
BLAKE2b-256 1b7b1da32aa46588d269bc9a2b1522968bac570693d76d0cc499b0a15c1772d2

See more details on using hashes here.

Supported by

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