Skip to content

Commit

Permalink
Add initial version of autogenerated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCuckoo committed Nov 14, 2023
1 parent 16c42b7 commit 3470cf8
Show file tree
Hide file tree
Showing 221 changed files with 20,578 additions and 3,132 deletions.
23 changes: 23 additions & 0 deletions .swagger-codegen-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Swagger Codegen Ignore
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "3.2"
- "3.3"
- "3.4"
- "3.5"
#- "3.5-dev" # 3.5 development branch
#- "nightly" # points to the latest development branch e.g. 3.6-dev
# command to install dependencies
install: "pip install -r requirements.txt"
# command to run tests
script: nosetests
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ logs = ankr_w3.query.get_logs(
Get data about all the NFTs (collectibles) owned by a wallet.

````python3
nfts = ankr_w3.nft.get_nfts(
import ankr

nfts = ankr.advanced_apis.AnkrNFTAPI.get_nfts(
blockchain="eth",
wallet_address="0x0E11A192d574b342C51be9e306694C41547185DD",
filter=[
Expand Down
87 changes: 84 additions & 3 deletions ankr/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,85 @@
from __future__ import annotations
# coding: utf-8

from ankr.advanced_apis import AnkrAdvancedAPI
from ankr.web3 import AnkrWeb3
# flake8: noqa

"""
Ankr Advanced API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

from __future__ import absolute_import

# import apis into sdk package
from ankr.api.early_access_api import EarlyAccessApi
from ankr.api.nft_api_api import NFTAPIApi
from ankr.api.query_api_api import QueryAPIApi
from ankr.api.token_api_api import TokenAPIApi
# import ApiClient
from ankr.api_client import ApiClient
from ankr.configuration import Configuration
# import models into sdk package
from ankr.models.ankr_explain_token_price_body import AnkrExplainTokenPriceBody
from ankr.models.ankr_explain_token_price_params import AnkrExplainTokenPriceParams
from ankr.models.ankr_get_account_balance_body import AnkrGetAccountBalanceBody
from ankr.models.ankr_get_account_balance_historical_body import AnkrGetAccountBalanceHistoricalBody
from ankr.models.ankr_get_account_balance_historical_params import AnkrGetAccountBalanceHistoricalParams
from ankr.models.ankr_get_account_balance_params import AnkrGetAccountBalanceParams
from ankr.models.ankr_get_blockchain_stats_body import AnkrGetBlockchainStatsBody
from ankr.models.ankr_get_blockchain_stats_params import AnkrGetBlockchainStatsParams
from ankr.models.ankr_get_blocks_body import AnkrGetBlocksBody
from ankr.models.ankr_get_blocks_params import AnkrGetBlocksParams
from ankr.models.ankr_get_currencies_body import AnkrGetCurrenciesBody
from ankr.models.ankr_get_currencies_params import AnkrGetCurrenciesParams
from ankr.models.ankr_get_interactions_body import AnkrGetInteractionsBody
from ankr.models.ankr_get_interactions_params import AnkrGetInteractionsParams
from ankr.models.ankr_get_internal_transactions_by_block_number_body import AnkrGetInternalTransactionsByBlockNumberBody
from ankr.models.ankr_get_internal_transactions_by_block_number_params import AnkrGetInternalTransactionsByBlockNumberParams
from ankr.models.ankr_get_internal_transactions_by_parent_hash_body import AnkrGetInternalTransactionsByParentHashBody
from ankr.models.ankr_get_internal_transactions_by_parent_hash_params import AnkrGetInternalTransactionsByParentHashParams
from ankr.models.ankr_get_logs_body import AnkrGetLogsBody
from ankr.models.ankr_get_logs_params import AnkrGetLogsParams
from ankr.models.ankr_get_nft_holders_body import AnkrGetNFTHoldersBody
from ankr.models.ankr_get_nft_holders_params import AnkrGetNFTHoldersParams
from ankr.models.ankr_get_nft_metadata_body import AnkrGetNFTMetadataBody
from ankr.models.ankr_get_nft_metadata_params import AnkrGetNFTMetadataParams
from ankr.models.ankr_get_nfts_by_owner_body import AnkrGetNFTsByOwnerBody
from ankr.models.ankr_get_nfts_by_owner_params import AnkrGetNFTsByOwnerParams
from ankr.models.ankr_get_nft_transfers_body import AnkrGetNftTransfersBody
from ankr.models.ankr_get_nft_transfers_params import AnkrGetNftTransfersParams
from ankr.models.ankr_get_token_holders_body import AnkrGetTokenHoldersBody
from ankr.models.ankr_get_token_holders_count_body import AnkrGetTokenHoldersCountBody
from ankr.models.ankr_get_token_holders_params import AnkrGetTokenHoldersParams
from ankr.models.ankr_get_token_price_body import AnkrGetTokenPriceBody
from ankr.models.ankr_get_token_price_history_body import AnkrGetTokenPriceHistoryBody
from ankr.models.ankr_get_token_price_history_params import AnkrGetTokenPriceHistoryParams
from ankr.models.ankr_get_token_price_params import AnkrGetTokenPriceParams
from ankr.models.ankr_get_token_transfers_body import AnkrGetTokenTransfersBody
from ankr.models.ankr_get_transactions_by_address_body import AnkrGetTransactionsByAddressBody
from ankr.models.ankr_get_transactions_by_address_params import AnkrGetTransactionsByAddressParams
from ankr.models.ankr_get_transactions_by_hash_body import AnkrGetTransactionsByHashBody
from ankr.models.ankr_get_transactions_by_hash_params import AnkrGetTransactionsByHashParams
from ankr.models.inline_response200 import InlineResponse200
from ankr.models.inline_response2001 import InlineResponse2001
from ankr.models.inline_response20010 import InlineResponse20010
from ankr.models.inline_response20011 import InlineResponse20011
from ankr.models.inline_response20012 import InlineResponse20012
from ankr.models.inline_response20013 import InlineResponse20013
from ankr.models.inline_response20014 import InlineResponse20014
from ankr.models.inline_response20015 import InlineResponse20015
from ankr.models.inline_response20016 import InlineResponse20016
from ankr.models.inline_response20017 import InlineResponse20017
from ankr.models.inline_response20018 import InlineResponse20018
from ankr.models.inline_response20019 import InlineResponse20019
from ankr.models.inline_response2002 import InlineResponse2002
from ankr.models.inline_response2003 import InlineResponse2003
from ankr.models.inline_response2004 import InlineResponse2004
from ankr.models.inline_response2005 import InlineResponse2005
from ankr.models.inline_response2006 import InlineResponse2006
from ankr.models.inline_response2007 import InlineResponse2007
from ankr.models.inline_response2008 import InlineResponse2008
from ankr.models.inline_response2009 import InlineResponse2009
Loading

0 comments on commit 3470cf8

Please sign in to comment.