Skip to main content

PyC8 SDK

PyPI PyPI - Python Version PyPI - Format PyPI - Wheel PyPI - Downloads

Python SDK for the Macrometa Global Data Mesh.


🐍 Supported Python Versions

This SDK supports the following Python implementations:

  • Python 3.4 - 3.10

⚙️ Installation

Install from PyPi using pip, a package manager for Python.

pip install pyC8

🔐 Authentication

Currently, pyC8 supports API Key, JWT token, username and password authentication. Preferred method needs to be passed during client creation. We highly recommend that you use API key or JWT token.

You can create you test Macrometa account with this link.

After that you can check out our getting started code examples.

🧰 Development environment

To enable development environment position ourselves to project's root and run:

pip install -r requirements/dev.txt

🧪 Testing

End-to-end tests can be found in tests/. Before first run create .env file in tests/. In .env file add variables:

  • FEDERATION_URL="<your federation url>"
  • FABRIC="<selected fabric>"
  • API_KEY="<your api key>"

.env file is in .gitignore.

To run tests position yourself in the project's root while your virtual environment is active and run:

python -m pytest

Since we have end-to-end test we use VCR package to record our response so tests can be faster in next iteration. Example:

pytest --record-mode=once test_redis.py

Cassettes folder will be created with '.yaml'. Each test will have its own file.

📐 Enable pre-commit hooks

You will need to install pre-commit hooks Using homebrew:

brew install pre-commit

Using conda (via conda-forge):

conda install -c conda-forge pre-commit

To check installation run:

pre-commit --version

If installation was successful you will see version number. You can find the Pre-commit configuration in .pre-commit-config.yaml. Install the git hook scripts:

pre-commit install

Run against all files:

pre-commit run --all-files

If setup was successful pre-commit will run on every commit. Every time you clone a project that uses pre-commit, running pre-commit install should be the first thing you do.

👨‍💻 Build

To build package we need to position ourselves to project's root and run:

 $ python setup.py build

🪛 Upgrade

pip install --upgrade pyC8

📗 Examples

You can find code examples in our getting started collection.

🆘 Macrometa Support

If you have any trouble or need help while using SDK please contact support@macrometa.com.

⚖️ License

This library is distributed under the Apache License 2.0 license found in the License.

📜 Code of Conduct

This project and everyone participating in it is governed by the Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to product@macrometa.com.

Metadata

Release files for pyC8 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyC8 1.1.2
File Size Uploaded
pyC8-1.1.2.tar.gz 99.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyC8 1.1.2
File Interpreter ABI Platform
pyC8-1.1.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 207.6 kB

Release files / pyC8-1.1.2.tar.gz

Download URL pyC8-1.1.2.tar.gz
Size 99.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f6b130ff3e84fe17a26945bd6846b2ba2bd1c4fc312461f0bf855c7d5a975f9f
BLAKE2b-256 checksum
How to use checksums
386bfff35fcd3ef42dacca8593205754c4465183e31f32fdef7d486891b60d8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release files / pyC8-1.1.2-py2.py3-none-any.whl

Download URL pyC8-1.1.2-py2.py3-none-any.whl
Size 108.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
93da1600513d8c367f105538fd6f2932f1a22ae5a17ddee35c1da38e69f7aa68
BLAKE2b-256 checksum
How to use checksums
a963e09549e0cb0a741d44eb7d970e4ce24cfd81af13eb8ff7e8d5d546657a18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.18.0

2 release files

0.17.3

2 release files

0.17.1

2 release files

0.17.0

2 release files

0.16.9

2 release files

0.16.8

2 release files

0.16.7

2 release files

0.16.6

2 release files

0.16.5

2 release files

0.16.4

2 release files

0.16.3

2 release files

0.16.1

2 release files

0.15.3

2 release files

0.14.5

2 release files

0.14.4

2 release files

0.14.3

2 release files

0.14.2

2 release files

0.12.9

2 release files

0.12.8

2 release files

0.12.7

2 release files

0.12.3

2 release files

0.11.5

2 release files

0.11.4

2 release files

0.11.3

2 release files

0.11.2

2 release files

0.11.0

2 release files

0.10.6

2 release files

0.10.5

2 release files

0.10.4

2 release files

0.10.3

2 release files

0.10.2

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.1

1 release file

0.9.0

2 release files

0.8.9

2 release files

0.8.8

2 release files

0.8.7

2 release files

0.8.6

2 release files

0.8.5

2 release files

0.7.9

1 release file

0.7.8

1 release file

0.7.7

2 release files

0.7.6

2 release files

0.7.5

2 release files

0.0.1

2 release files

0.0.0

2 release 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