Skip to content

Releases: cardano-community/koios-python

v2.0.0

02 Mar 17:15
2e33420
Compare
Choose a tag to compare

Thanks to @AstroWa3l for all work.

As usual you can update to this version using pip: pip3 install -U koios-python

v1.3.1

16 Jul 22:22
Compare
Choose a tag to compare
  • Adding pagination and ordering to asset.py

Thanks to @wolf31o2 for the work and @AstroWa3l for the testing.

As usual you can update to this version using pip: pip3 install -U koios-python

v1.3.0

02 Apr 15:53
8c95dbc
Compare
Choose a tag to compare

Changes for KOIOS API

  • In this new version you will find the changes we need to complete to koios_python before next release to match the current version of KOIOS API. All tasks that have been completed are the ones crossed out by a line.

  • new attribute to know the koios-python version you are running:

kp = kp.URLs()
print(kp.version)

Output:

'koios-python v1.3.0'

Deprecations

  • /asset_address_list - Renamed to asset_addresses keeping naming line with other endpoints (old endpoint will be retired in future release) #149
  • /asset_policy_info - Renamed to policy_asset_info keeping naming line with other endpoints (old endpoint will be retired in future release) #149

New endpoints added

  • /asset_addresses - Equivalent of deprecated /asset_address_list #149
  • /asset_nft_address - Returns address where the specified NFT sits on #149
  • /account_utxos - Returns brief details on non-empty UTxOs associated with a given stake address #149
  • /asset_info_bulk - Bulk version of /asset_info #142
  • /asset_token_registry - Returns assets registered via token registry on github #145
  • /credential_utxos - Returns UTxOs associated with a payment credential #149
  • /param_updates - Returns list of parameter update proposals applied to the network #149
  • /policy_asset_addresses - Returns addresses with quantity for each asset on a given policy #149
  • /policy_asset_info - Equivalent of deprecated /asset_policy_info but with more details in output #149
  • /policy_asset_list - Returns list of asset under the given policy (including supply) #142, #149

Data Input/Output Changes

  • Input - /account_addresses - Add optional _first_only and _empty flags to show only first address with tx or to include empty addresses to output #149
  • Input - /epoch_info - Add optional _include_next_epoch field to show next epoch stats if available (eg: nonce, active stake) #143
  • Output (addition) - /account_assets , /address_assets , /address_info, /tx_info, /tx_utxos - Add decimals to output #142
  • Output (addition) - /policy_asset_info - Add minting_tx_hash, total_supply, mint_cnt, burn_cnt and creation_time fields to the output #149
  • Output (breaking) - /tx_info - Change _invalid_before and _invalid_after to text field #141
  • Output (breaking/removal) - tx_info - Remove the field plutus_contracts > [array] > outputs as there is no logic to connect it to inputs spending #163

Chores/epoch_info, /epoch_params - Restrict output to current epoch #149

  • /block_info - Use /previous_id field to show previous/next blocks (previously was using block_id/height) #145
  • /asset_info/asset_policy_info - Fix mint tx data to be latest #141
  • Support new guild scripts revamp #1572
  • Add asset token registry check 1606
  • New cache table grest.asset_info_cache to hold mint/burn counts alongwith first/last mint tx/keys #142
  • Bump to Koios 1.0.10rc #149
  • Fix typo in specs for /pool_delegators output column latest_delegation_tx_hash #149
  • Add indexes for ones missing after configuring cardano-db-sync 13.1.0.0 #149
  • Update PostgREST to be run as authenticator user, whose default statement_timeout is set to 65s and update configs accordingly #1606
  • Replace all RPC references for JSON endpoints with JSONB, this allows filtering child members of array elements using cs.[{"key":"value"}] in PostgREST #172
  • Fix Asset Info Cache to not rely on being able to decode policy ID (bad data on IO repo) #173
  • Handle Pool_list to check metadata entries that have not been populated in pool_offline_data #173
  • Fix pool_updates to use pmr_id instead of pool_offline_data.id #173
  • Update account_info_cached description to clarify it is effective for registered accounts #173

What's Changed

  • fix url for get_pool_delegators_history by @AstroWa3l in #9
  • New update with added endpoints and removed deprecated by @AstroWa3l in #10

Full Changelog: v1.2.1...v1.3.0

1.2.1

24 Jan 11:03
Compare
Choose a tag to compare
  • Fixing errant print (by wolf31o2)
  • Improving pythonic style to enviroment.py

1.2.0

23 Jan 13:27
Compare
Choose a tag to compare
  • Improving timeout managing
  • Adding more information for users and developers
  • Improving all the code to be easy to read and more organized
  • Adding more functionalities to enviroment.py file

1.1.0

01 Jan 23:17
Compare
Choose a tag to compare
  • Handling timeouts errors in all functions
  • Managing dynamic timeouts
  • Handling JSON Decode errors for heavy payloads in get_account_assets
  • Adding pagination for some more functions

1.0.2

10 Dec 21:33
Compare
Choose a tag to compare

Pagination parameter added in these functions:

  • get_blocks()
  • get_account_list()
  • get_asset_list()
  • get_asset_address_list()
  • get_tx_metalabels()
  • get_pool_delegators()
  • get_pool_relays()

1.0.0

10 Dec 16:28
Compare
Choose a tag to compare
  • Change to OOP architecture to use different networks (Mainnet or Testnet) and also your Custom Endpoint.

  • Added new Koios functions:

    • get_account_info_cached
    • get_epoch_blocks_protocol
    • get_datum_info
  • Added new testpy to check all functions in a row

  • Improvement of some functions

0.3.1

12 Oct 14:11
Compare
Choose a tag to compare
  • Fixed all new and changed method queries from KOIOS API
  • Added timeouts for method queries
  • Added new functions from KOIOS API
  • Improvement of some functions

0.2.0

10 May 19:39
Compare
Choose a tag to compare
  • Add range option to lists. Now you can using pagination if necessary.
  • URLs organization improvement in a different file to make updating easier.
  • Docstring improvement