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.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

myb_coinbase_api-1.0.0-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: myb-coinbase-api-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for myb-coinbase-api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 031f5e9106383954da85093e4e0cdb90f714e3058231f0907a050a8d2974cd32
MD5 f48d68e9d31cbdb483facc26c9034074
BLAKE2b-256 39eaabec2a751c8ae5cc51a6d8ca1f4bfd33a1d559bfbbae9946fe1e363df7bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: myb_coinbase_api-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for myb_coinbase_api-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9480519dc20aea386d532c75a44b0274efb2ced8be4fad95ae6e90b16af68855
MD5 d611c4429f2d46623de462ce3b1e0193
BLAKE2b-256 8232b2f8c065c19c6b4cfe528c6d981c9df41844d2e4ce7fe92350b0ffe65210

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