Skip to main content

wrapper library for opensea api

Project description

Opensea API

An API wrapper library for opensea api.

Installation

pip3 install opensea

Usage

Retrieving assets:

from opensea import get_assets

# This will return a list of assets which you can iterate and get the needed data
asset_list = get_assets(limit=10, verified_only=False)

asset = asset_list[0] # Get the first asset obejct from the list

print(asset.name)
print(asset.description)
print(asset.asset_url)
print(asset.get_floor_price()) # Floor price of the collection

Retrieving bundles:

from opensea import get_bundles

# This will return a list of assets which you can iterate and get the needed data
bundles_list = get_bundles(limit=10)

bundle = bundles_list[0] # Get the first asset obejct from the list

print(bundle.slug)
print(bundle.assets[0].name)

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

opensea-0.1.5.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

opensea-0.1.5-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file opensea-0.1.5.tar.gz.

File metadata

  • Download URL: opensea-0.1.5.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for opensea-0.1.5.tar.gz
Algorithm Hash digest
SHA256 747ab9ce33b42f30c0934b512488c76a0666941cd3be01e4df385ea651e1d10a
MD5 4ba0fe5361e75297529bda838c12eb04
BLAKE2b-256 18646573e4cc417922e71f0d339ec02343e8e8d01bf20fc76daa774d2e1d0f33

See more details on using hashes here.

File details

Details for the file opensea-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: opensea-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for opensea-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5187539c8c2f717b558050d5a25894966d45f5f9708e05a4dca3902cc6d79219
MD5 421596fbe8424f03570bedb19a1107d2
BLAKE2b-256 9b2b869e6f186db3da5edbcf2becdce2f2124c5df5381e731397a3758e50d4cd

See more details on using hashes here.

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