Skip to main content

Python library for communicating with the Coinbase API

Project description

myb-coinbase-api

An API client for the Coinbase API

Installation

The package is availble via PyPi and can be installed with the following command:

pip3 install myb-coinbase-api

To install it from the repo, clone the repo and cd into the directory:

git clone https://github.com/mine-your-business/myb-coinbase-api.git
cd myb-coinbase-api

You can install this library with pip:

pip3 install .

Testing

This project makes use of the Coinbase API for tests. Unfortunately there does not appear to be a "Sandbox" API at this time for testing endpoints that require authentication. As such, this project does not have tests for those endpoints.

When tests requiring authentication are implemented, before tests can be run a local_env_vars.py file needs to be created in the tests folder. You can use the local_env_vars_example.py file as an example for the content - just be sure to fill out the API Key data with actual secrets for API keys created on the Coinbase site.

To run tests, simply run the following command:

pytest --verbose

Releases

Releases should follow a Semantic Versioning scheme.

When changes have been made that warrant a new release that should be published, modify the __version__ in setup.py

After the change is merged to the main branch, go to releases and Draft a new release. The Tag version should follow the pattern v1.0.0 and should Target the main branch.

The Release title should not include the v from the tag and should have a reasonably detailed description of the new release's changes (or put these details in the description and simply have the version in the title).

Once the release has been published, the .github/workflows/python-publish.yml GitHub Actions Workflow should trigger and automatically upload the new version to PyPi using GitHub secrets credentials stored with the Mine Your Business GitHub Organization.

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

myb-coinbase-api-1.1.0.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

myb_coinbase_api-1.1.0-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file myb-coinbase-api-1.1.0.tar.gz.

File metadata

  • Download URL: myb-coinbase-api-1.1.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for myb-coinbase-api-1.1.0.tar.gz
Algorithm Hash digest
SHA256 464f73b07e17a94f3b78102fd777bf72729fb100302e17ee4add23f261c0b7ab
MD5 e6e3f7c50fc38dac4140c8cae93eae69
BLAKE2b-256 ab8b668d973170db7d7d2d9fcb5d7ca2c0acbdd3478b6af5ec51831013ac0059

See more details on using hashes here.

File details

Details for the file myb_coinbase_api-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: myb_coinbase_api-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for myb_coinbase_api-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31985d98f5733f33738859d74dae4f0c3aeebad02e26a27e04ed1020645e5754
MD5 99afad0145ca5e0ba9db3b5d199a167d
BLAKE2b-256 716d47c0b894952b6e43a4e22c9f2fc78aa312e74dc04f1ef2e150cffea8b7fc

See more details on using hashes here.

Supported by

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