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 v1.0

juungle-python

Python package to access Juungle.net API

Installation

$ python -m pip install juungle

Running from source

$ git clone https://github.com/Juungle/juungle-python.git juungle
$ cd juungle
$ python -m pip -r requirements.txt

User credentials for Juungle.net

Using a config file

Create a file user-config.ini with juungle.net credentials in the same directory of your code:

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

OR 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.6.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

juungle-0.6.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file juungle-0.6.1.tar.gz.

File metadata

  • Download URL: juungle-0.6.1.tar.gz
  • Upload date:
  • Size: 5.1 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.7.9

File hashes

Hashes for juungle-0.6.1.tar.gz
Algorithm Hash digest
SHA256 5b63e649e9439877a5e390569173aec806c173c03a5eb4d7576028dca89b75f8
MD5 055190c3fd4090141a4655c62483914a
BLAKE2b-256 536d9ec46da71a231793b7c279158b525b4e005962b797081462a98187285edd

See more details on using hashes here.

File details

Details for the file juungle-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: juungle-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 7.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.7.9

File hashes

Hashes for juungle-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2a5997c96d1b574cb9a7d33f0759344b0c07d5a2a3b8b1b9e7a0a7fa62553fb
MD5 8f7ce59d5a91f06d219705bd9643661e
BLAKE2b-256 f403be2ac3410f6467563a6df91be616a4c48dee2d6a875444589e6d9c88c397

See more details on using hashes here.

Supported by

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