Skip to main content

Python SDK for Macrometa Global Data Mesh

Project description

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.

Project details


Download files

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

Source Distribution

pyC8-1.0.0.tar.gz (98.5 kB view details)

Uploaded Source

Built Distribution

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

pyC8-1.0.0-py2.py3-none-any.whl (108.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyC8-1.0.0.tar.gz.

File metadata

  • Download URL: pyC8-1.0.0.tar.gz
  • Upload date:
  • Size: 98.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pyC8-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8a8b77cbd99d44a10525d0cbb9cf2f4e13a1e8c0252928a4b88743739d153f34
MD5 f57994e08e4ea1eedd427aab427914d9
BLAKE2b-256 a6c4a21b390e890887e5291e9ad3061a524901c104c149e97b78614cac07a83f

See more details on using hashes here.

File details

Details for the file pyC8-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pyC8-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 108.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pyC8-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dc26354b45fb7e9a200ebd342344e6c4d068b8b9de523f6f44d0e3b74cc56435
MD5 6f1257d136c363aa13fe4af9819114f1
BLAKE2b-256 5049a2b642c18d98e3a95b8919e0d557f5419ff7b7bbdbe61af5d87bae91f0a0

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