bookio-fetchfox


Namebookio-fetchfox JSON
Version 2.4.6 PyPI version JSON
download
home_pagehttps://github.com/book-io/fetchfox
SummaryCollection of API services to fetch information from several blockchains.
upload_time2024-04-22 20:48:38
maintainerNone
docs_urlNone
authorFede
requires_python<4.0,>=3.8
licenseMIT
keywords book.io blockchain crypto algorand cardano ethereum polygon
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # book.io / fetchfox

> Collection of API services to fetch information from several blockchains.

![](https://s2.coinmarketcap.com/static/img/coins/64x64/4030.png)
![](https://s2.coinmarketcap.com/static/img/coins/64x64/2010.png)
![](https://s2.coinmarketcap.com/static/img/coins/64x64/1027.png)
![](https://s2.coinmarketcap.com/static/img/coins/64x64/3890.png)


## Supported Blockchains

### Algorand

```python
import os
from fetchfox.blockchains import Algorand

algorand = Algorand(
    nftexplorerapp_api_key=os.getenv("NFTEXPLORER_API_KEY"),
)

# Brave New World
creator_address = "6WII6ES4H6UW7G7T7RJX63CUNPKJEPEGQ3PTYVVU3JHJ652W34GCJV5OVY"

for asset in algorand.get_assets(creator_address):
    print(asset)
```

#### Services

* get_asset ([algonode.cloud](https://algonode.cloud))
* get_assets ([algonode.cloud](https://algonode.cloud))
* get_holdings ([algonode.cloud](https://algonode.cloud))
* get_snapshot ([algonode.cloud](https://algonode.cloud))
* get_campaigns ([book.io](https://book.io))
* get_listings ([randgallery.com](https://randgallery.com) / [algoxnft.com](https://algoxnft.com))
* get_floor ([randgallery.com](https://randgallery.com) / [algoxnft.com](https://algoxnft.com))
* get_sales ([nftexplorer.app¹](https://nftexplorer.app))


### Cardano

```python
import os
from fetchfox.blockchains import Cardano

cardano = Cardano(
    blockfrostio_project_id=os.getenv("BLOCKFROST_PROJECT_ID"),
)

# Gutenberg Bible
policy_id = "477cec772adb1466b301fb8161f505aa66ed1ee8d69d3e7984256a43"

for asset in cardano.get_collection_assets(policy_id):
    print(asset)
```

#### Services

* get_asset ([blockfrost.io²](https://blockfrost.io))
* get_assets ([blockfrost.io²](https://blockfrost.io))
* get_holdings ([blockfrost.io²](https://blockfrost.io))
* get_campaigns ([book.io](https://book.io))
* get_snapshot ([blockfrost.io²](https://blockfrost.io))
* get_listings ([jpg.store](https://jpg.store))
* get_floor ([jpg.store](https://jpg.store))
* get_sales ([jpg.store](https://jpg.store))
* get_ranks ([cnft.tools](https://cnft.tools))


### EVM (Ethereum and Polygon)

```python
import os
from fetchfox.blockchains import Ethereum, Polygon

ethereum = Ethereum(
    geckodriver_path=os.getenv("GECKODRIVER_PATH"),
    moralisio_api_key=os.getenv("MORALIS_API_KEY"),
    openseaio_api_key=os.getenv("OPENSEA_API_KEY"),
)

polygon = Polygon(
    geckodriver_path=os.getenv("GECKODRIVER_PATH"),
    moralisio_api_key=os.getenv("MORALIS_API_KEY"),
    openseaio_api_key=os.getenv("OPENSEA_API_KEY"),
)


# Alice in Wonderland
contract_address = "0x919da7fef646226f88f70305201de392ff365059"

for asset in ethereum.get_assets(contract_address):
    print(asset)

# Art of War
contract_address = "0xb56010e0500e4f163758881603b8083996ae47ec"

for asset in polygon.get_assets(contract_address):
    print(asset)
```

#### Services

* get_asset ([moralis.io³](https://moralis.io))
* get_assets ([moralis.io³](https://moralis.io))
* get_holdings ([moralis.io³](https://moralis.io))
* get_snapshot ([moralis.io³](https://moralis.io))
* get_campaigns ([book.io](https://book.io))
* get_listings ([opensea.io⁴](https://opensea.io))
* get_floor ([opensea.io⁴](https://opensea.io))
* get_sales ([opensea.io⁴](https://opensea.io))


> ¹ **nftexplorer.app** services require an [api key](https://www.nftexplorer.app/nftx-api).
> 
> ² **blockfrost.io** services require a [project id](https://blockfrost.dev/docs/overview/plans-and-billing).
> 
> ³ **moralis.io** services require an [api key](https://moralis.io/pricing).
> 
> ⁴ **opensea.io** some services also require an [api key](https://docs.opensea.io/reference/api-keys). 

---

![fetch, the fox](https://i.imgur.com/fm6mqzS.png)
> fetch, the fox


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/book-io/fetchfox",
    "name": "bookio-fetchfox",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8",
    "maintainer_email": null,
    "keywords": "book.io, blockchain, crypto, algorand, cardano, ethereum, polygon",
    "author": "Fede",
    "author_email": "fede@book.io",
    "download_url": "https://files.pythonhosted.org/packages/ec/32/ae914da278fdac6249491c19a2acbb5630f087614998e02da0054fa22eba/bookio_fetchfox-2.4.6.tar.gz",
    "platform": null,
    "description": "# book.io / fetchfox\n\n> Collection of API services to fetch information from several blockchains.\n\n![](https://s2.coinmarketcap.com/static/img/coins/64x64/4030.png)\n![](https://s2.coinmarketcap.com/static/img/coins/64x64/2010.png)\n![](https://s2.coinmarketcap.com/static/img/coins/64x64/1027.png)\n![](https://s2.coinmarketcap.com/static/img/coins/64x64/3890.png)\n\n\n## Supported Blockchains\n\n### Algorand\n\n```python\nimport os\nfrom fetchfox.blockchains import Algorand\n\nalgorand = Algorand(\n    nftexplorerapp_api_key=os.getenv(\"NFTEXPLORER_API_KEY\"),\n)\n\n# Brave New World\ncreator_address = \"6WII6ES4H6UW7G7T7RJX63CUNPKJEPEGQ3PTYVVU3JHJ652W34GCJV5OVY\"\n\nfor asset in algorand.get_assets(creator_address):\n    print(asset)\n```\n\n#### Services\n\n* get_asset ([algonode.cloud](https://algonode.cloud))\n* get_assets ([algonode.cloud](https://algonode.cloud))\n* get_holdings ([algonode.cloud](https://algonode.cloud))\n* get_snapshot ([algonode.cloud](https://algonode.cloud))\n* get_campaigns ([book.io](https://book.io))\n* get_listings ([randgallery.com](https://randgallery.com) / [algoxnft.com](https://algoxnft.com))\n* get_floor ([randgallery.com](https://randgallery.com) / [algoxnft.com](https://algoxnft.com))\n* get_sales ([nftexplorer.app\u00b9](https://nftexplorer.app))\n\n\n### Cardano\n\n```python\nimport os\nfrom fetchfox.blockchains import Cardano\n\ncardano = Cardano(\n    blockfrostio_project_id=os.getenv(\"BLOCKFROST_PROJECT_ID\"),\n)\n\n# Gutenberg Bible\npolicy_id = \"477cec772adb1466b301fb8161f505aa66ed1ee8d69d3e7984256a43\"\n\nfor asset in cardano.get_collection_assets(policy_id):\n    print(asset)\n```\n\n#### Services\n\n* get_asset ([blockfrost.io\u00b2](https://blockfrost.io))\n* get_assets ([blockfrost.io\u00b2](https://blockfrost.io))\n* get_holdings ([blockfrost.io\u00b2](https://blockfrost.io))\n* get_campaigns ([book.io](https://book.io))\n* get_snapshot ([blockfrost.io\u00b2](https://blockfrost.io))\n* get_listings ([jpg.store](https://jpg.store))\n* get_floor ([jpg.store](https://jpg.store))\n* get_sales ([jpg.store](https://jpg.store))\n* get_ranks ([cnft.tools](https://cnft.tools))\n\n\n### EVM (Ethereum and Polygon)\n\n```python\nimport os\nfrom fetchfox.blockchains import Ethereum, Polygon\n\nethereum = Ethereum(\n    geckodriver_path=os.getenv(\"GECKODRIVER_PATH\"),\n    moralisio_api_key=os.getenv(\"MORALIS_API_KEY\"),\n    openseaio_api_key=os.getenv(\"OPENSEA_API_KEY\"),\n)\n\npolygon = Polygon(\n    geckodriver_path=os.getenv(\"GECKODRIVER_PATH\"),\n    moralisio_api_key=os.getenv(\"MORALIS_API_KEY\"),\n    openseaio_api_key=os.getenv(\"OPENSEA_API_KEY\"),\n)\n\n\n# Alice in Wonderland\ncontract_address = \"0x919da7fef646226f88f70305201de392ff365059\"\n\nfor asset in ethereum.get_assets(contract_address):\n    print(asset)\n\n# Art of War\ncontract_address = \"0xb56010e0500e4f163758881603b8083996ae47ec\"\n\nfor asset in polygon.get_assets(contract_address):\n    print(asset)\n```\n\n#### Services\n\n* get_asset ([moralis.io\u00b3](https://moralis.io))\n* get_assets ([moralis.io\u00b3](https://moralis.io))\n* get_holdings ([moralis.io\u00b3](https://moralis.io))\n* get_snapshot ([moralis.io\u00b3](https://moralis.io))\n* get_campaigns ([book.io](https://book.io))\n* get_listings ([opensea.io\u2074](https://opensea.io))\n* get_floor ([opensea.io\u2074](https://opensea.io))\n* get_sales ([opensea.io\u2074](https://opensea.io))\n\n\n> \u00b9 **nftexplorer.app** services require an [api key](https://www.nftexplorer.app/nftx-api).\n> \n> \u00b2 **blockfrost.io** services require a [project id](https://blockfrost.dev/docs/overview/plans-and-billing).\n> \n> \u00b3 **moralis.io** services require an [api key](https://moralis.io/pricing).\n> \n> \u2074 **opensea.io** some services also require an [api key](https://docs.opensea.io/reference/api-keys). \n\n---\n\n![fetch, the fox](https://i.imgur.com/fm6mqzS.png)\n> fetch, the fox\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Collection of API services to fetch information from several blockchains.",
    "version": "2.4.6",
    "project_urls": {
        "Documentation": "https://github.com/book-io/fetchfox/blob/main/README.md",
        "Homepage": "https://github.com/book-io/fetchfox"
    },
    "split_keywords": [
        "book.io",
        " blockchain",
        " crypto",
        " algorand",
        " cardano",
        " ethereum",
        " polygon"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b1c80f6dfd60cbf80b24e01b52e8758777b37ec9489526fca275052b860aad8a",
                "md5": "1a545f3eeaca5923af0be7496dbeb050",
                "sha256": "0e0d7a958bc970ad59bd5e9fb43bb07bb599e63a10de9a429e4b22307532690e"
            },
            "downloads": -1,
            "filename": "bookio_fetchfox-2.4.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1a545f3eeaca5923af0be7496dbeb050",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 108591,
            "upload_time": "2024-04-22T20:48:31",
            "upload_time_iso_8601": "2024-04-22T20:48:31.022880Z",
            "url": "https://files.pythonhosted.org/packages/b1/c8/0f6dfd60cbf80b24e01b52e8758777b37ec9489526fca275052b860aad8a/bookio_fetchfox-2.4.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ec32ae914da278fdac6249491c19a2acbb5630f087614998e02da0054fa22eba",
                "md5": "c9efe8099eea0d7fe92f858c133ae354",
                "sha256": "77e308fc2f8b7ec9b5a1d956b0a064346af0014b5b93b9c391cc68bbd8bb96f3"
            },
            "downloads": -1,
            "filename": "bookio_fetchfox-2.4.6.tar.gz",
            "has_sig": false,
            "md5_digest": "c9efe8099eea0d7fe92f858c133ae354",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 88314,
            "upload_time": "2024-04-22T20:48:38",
            "upload_time_iso_8601": "2024-04-22T20:48:38.537271Z",
            "url": "https://files.pythonhosted.org/packages/ec/32/ae914da278fdac6249491c19a2acbb5630f087614998e02da0054fa22eba/bookio_fetchfox-2.4.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-22 20:48:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "book-io",
    "github_project": "fetchfox",
    "github_not_found": true,
    "lcname": "bookio-fetchfox"
}
        
Elapsed time: 0.24635s