Skip to main content

To interact with BTCS crypto systems.

Project description

crypto systems package for BTCS crypto business systems

Install

pip install btcs_crypto_systems

Update

pip install btcs_crypto_systems --upgrade

Usage

TokenMaster

Retrieve a the symbol of a specific asset

from btcs_crypto_systems import token_master

tm = token_master.TokenMaster(env="test")
print(tm.assets[7].symbol)

Find the differences between two TM environments

from btcs_crypto_systems import token_master

tm_prod = token_master.TokenMaster(env="prod")
tm_dev = token_master.TokenMaster(env="dev")

tm_prod.print_diffs(tm_dev)

Utils

from btcs_crypto_systems import utils

csv_writer = utils.get_csv_writer(file_name="example_output_file", headers=["address", "balance"])
csv_writer.writerow(["0x8c8d7c46219d9205f056f28fee5950ad564d7465","1.001"])

#creates a file called 20230217_0853_example_output_file.csv

AMS

from btcs_crypto_systems import address_manangement_service

ams = address_manangement_service.AMS(env="test")
print(json.dumps(ams.get_addresses(is_deposit=True, include_balances=True, limit=10, tags=["siba"]), indent=2))

Update the package

Navigate to the folder where the pyproject.toml file is. Update version number.

python3 -m build
python3 -m twine upload --repository pypi dist/*

Make sure old bulds are not part of the dist folder.

username: __token__
password: get an API key from here https://pypi.org/manage/account/token/ 

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

btcs_crypto_systems-0.0.16-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file btcs_crypto_systems-0.0.16-py3-none-any.whl.

File metadata

File hashes

Hashes for btcs_crypto_systems-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 a9236558697228ed29a2ed2d29d6044fe34127de3e4a44af710b6c6bf822d1af
MD5 787961ea9f49b0979a950bb62645777b
BLAKE2b-256 cbabcd52899bf80e33da76b24b98b902e53a69793cf0eff8c455d811d3ced3fd

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