Skip to main content

swapcoffee-tokens

Installation

pip install -U swapcoffee-tokens

Simple example

import asyncio
import logging

from swapcoffee.tokens import SwapCoffee
from swapcoffee.tokens.types import BlockchainToken


async def main() -> None:
    logging.basicConfig(level=logging.DEBUG)
    coffee: SwapCoffee = SwapCoffee()
    tokens: list[BlockchainToken] = await coffee.get_tokens_by_symbols(symbols=["NOT", "DMT"])
    for token in tokens:
        logging.info("Token %s ($%s) costs %s USD", token.name, token.symbol, token.price_usd)
    await coffee.session.close()


if __name__ == "__main__":
    asyncio.run(main())

Donations

TON: UQAYJ1terNmvoBh26Xi7tLa_P4t_OGMZOXBUfDB2mLMGuVMb USDT TRC20: TGr2J3Pi6WmcexwmGFJDHLqrrhDoe2U6w6

Metadata

Release files for swapcoffee.tokens 1.0.4

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

Source distribution (sdist)

Source distribution for swapcoffee.tokens 1.0.4
File Size Uploaded
swapcoffee_tokens-1.0.4.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swapcoffee.tokens 1.0.4
File Interpreter ABI Platform
swapcoffee_tokens-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 23.3 kB

Release files / swapcoffee_tokens-1.0.4.tar.gz

Download URL swapcoffee_tokens-1.0.4.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f83b54f34944535dd87b1d44bea2777db0833c4be41f697f0856fc8fa21a66d2
BLAKE2b-256 checksum
How to use checksums
acd5cda3cebee10ea1322f0ca837bfc09f8fd23dca85784f229781872ae987f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2024.

Transparency log

Release files / swapcoffee_tokens-1.0.4-py3-none-any.whl

Download URL swapcoffee_tokens-1.0.4-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c62bb20fbded8be5a56ea1ecf41db01147cca0e010a3d7201d9eb49432e90b0
BLAKE2b-256 checksum
How to use checksums
61de2274cedd28bde1a42935685a4670e2edb3bc7c80dbda038b9a66f077a993
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2024.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.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