Skip to main content

NetsBlox-python

NetsBlox-python is a wrapper for accessing NetsBlox services from within python. You can import this package in any python program that has internet access and begin calling RPCs and sending/receiving messages.

Installation

NetsBlox-python is available as a pip package called netsblox, so you can install it with the following:

pip install netsblox

Keep in mind that NetsBlox-python is a python3 package, so you may need to use pip3 if your pip still points to the python2 version.

Example Usage

Here's a short example to see how you can access the MaunaLoaCO2Data service from python.

import netsblox

client = netsblox.Client() # create a client to access NetsBlox
co2 = client.get_service('MaunaLoaCO2Data')
data = co2.get_co2_trend(2000, 2010)
print(data)

Naming Conventions

As seen in the example above, services are referenced by name as a string. These are identical to the service names shown in the NetsBlox services documentation. The RPCs (functions) in each service, however, are methods on the service object. NetsBlox uses cammelCase names, while python uses snake_case. If you see a function in the NetsBlox documentation like performSomeAction, you just need to write the equivalent snake case name perform_some_action.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netsblox-0.1.5.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

netsblox-0.1.5-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file netsblox-0.1.5.tar.gz.

File metadata

  • Download URL: netsblox-0.1.5.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for netsblox-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b4d2e2bd2206b8e73d32ac355bf23ba4c0bd7e7e6e38863d3da1537d53ba7d40
MD5 46c575b222fc852a1650c86551eb5adf
BLAKE2b-256 46d68a514cf5c46a5e0f03be60e3e360e3b1fd9c10c00bb1bf721056fc576bcc

See more details on using hashes here.

File details

Details for the file netsblox-0.1.5-py2.py3-none-any.whl.

File metadata

  • Download URL: netsblox-0.1.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for netsblox-0.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7f58e37fa823b64092b568f776162e03f686d38876d8c56f31ebadb78fa40599
MD5 77888e064714a4bc5ca686dcb94fdc69
BLAKE2b-256 c8c8fcbeec3c6524d21bfce32739288ffbac00717bde2025ecba97e463bd3941

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.20

2 files

0.6.19

2 files

0.6.18

2 files

0.6.17

2 files

0.6.16

2 files

0.6.15

2 files

0.6.14

2 files

0.6.13

2 files

0.6.12

2 files

0.6.11

2 files

0.6.10

2 files

0.6.9

2 files

0.6.8

1 file

0.6.7

1 file

0.6.6

1 file

0.6.5

1 file

0.6.4

1 file

0.6.3

1 file

0.6.2

1 file

0.6.1

1 file

0.6.0

1 file

0.5.17

1 file

0.5.16

1 file

0.5.15

2 files

0.5.14

2 files

0.5.13

2 files

0.5.12

2 files

0.5.11

2 files

0.5.10

2 files

0.5.9

2 files

0.5.8

2 files

0.5.7

2 files

0.5.6

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.17

2 files

0.4.16

2 files

0.4.15

2 files

0.4.14

2 files

0.4.13

2 files

0.4.12

2 files

0.4.11

2 files

0.4.10

2 files

0.4.9

2 files

0.4.8

2 files

0.4.7

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.6

2 files

This release

0.1.5 This release

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page