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.2.0.tar.gz (57.3 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.2.0-py2.py3-none-any.whl (65.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: netsblox-0.2.0.tar.gz
  • Upload date:
  • Size: 57.3 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.2.0.tar.gz
Algorithm Hash digest
SHA256 49ffa76338ae9081dd5035a34ace5cb74d2f6a058a9035a897a826a2339fbe1d
MD5 36f2c979956a0bb97ad6f7ffef73336e
BLAKE2b-256 fe9004596ed30917cd461c9f1e3c98f2b86444d4551e5f3a68797dba078f076b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netsblox-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 65.2 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.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4b9284ca5cde78251aec155e1725a59fad433fcf88ccaef50619171d66c37276
MD5 fcd7311896bd861ed8add90ccabda756
BLAKE2b-256 b77dc0d99b56ff6e58b31527803ebdf492f9cbd819446eaa7d6074b60934fd01

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

This release

0.2.0 This release

2 files

0.1.6

2 files

0.1.5

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