Skip to main content

Juungle python package for juungle.net

Project description

Python application

NOTE: ALTHOUGH THIS PROJECT WORKS, IT IS STILL UNDER HEAVY DEVELOPMENT AND THINGS WILL CHANGE BEFORE 1.0

juungle-python

Python package to access Juungle.net API

Requirements

$ python -m pip -r requirements.txt

User credentials for Juungle.net

Using a config file

Create a file user-config.ini:

LOGIN_USERNAME="username@email"
LOGIN_PASSWORD="password"

While creaing the object

Inside the code

from juungle.nfts import NFTs

nfts = NFTs('username@email', 'password')

Usage

List all WAIFUs nfts that are being sale for 0.01 BCH or less

from juungle.nfts import NFTs

nfts = NFTs()

nfts.available_to_buy = True
nfts.purchased = False
nfts.token_group = 'WAIFU'

nfts.get_nfts()

for nft in nfts.list_nfts:
    if nft.price_bch <= 0.01:
        print(nft.token_name)

List all my NFTs

from juungle.nfts import NFTS

nfts = NFTs()
nfts.get_my_nfts()

for nft in nfts.list_nfts:
    print(nft.token_name)

Tokens Group IDs

Because tokens/group name are not unique we have to use the HEX id that can be found at the simpleledger.info.

Juungle-python package provides a list of IDs just to make easier of the most common toekns:

Token Name Token ID
WAIFU a2987562a405648a6c5622ed6c205fca6169faa8afeb96a994b48010bd186a66

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

juungle-0.5.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

juungle-0.5-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

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