Skip to main content

pydiscordbio PyPI - Downloads PyPI

An unofficial asynchronous Python wrapper for the discord.bio api.

Installing

pip install pydiscordbio

Usage

  • Setting up the client

    This will be used to make requests to the API

from pydiscordbio import Client

client = Client()
  • Exceptions
Error Description
pydiscordbio.exceptions.APIError Raised when the request to the API itself fails
pydiscordbio.exceptions.NotFound Raised when the request to the API returns status code 404
pydiscordbio.exceptions.UserNotFound Raised when a user doesn't exist in the API
pydiscordbio.exceptions.InvalidSearch Raised when a search query is invalid
  • Getting a user's details, discord info and connections via username or Discord ID

    All methods of Client are typed meaning your IDE should auto complete the attributes

user = await client.user("wa")
#or
user = await client.user(738128655145762949)
  • Getting a specific value from a user's details, e.g. description or a users banner URL
description = (await client.user("wa")).details.description

banner_url = (await client.user("wa")).details.banner
  • Getting a specific value from a user's Discord, e.g. discord ID or username
description = (await client.user("wa")).discord.id

banner_url = (await client.user("wa")).discord.username
  • Getting a user's connected website
website = (await client.user("wa")).connections.website

# Discord connections
discord_connections = (await client.user("wa")).connections.discord
# Returns a list of DiscordConnection objects
  • Miscellaneous Endpoints
top_users = await client.top()
# Returns a list of PartialUser objects from the top liked profiles
result = await client.search('Adam')
# Returns a list of PartialUser objects from the query

Attributes

  • UserDetails (from client.user)
details: User
discord: Discord
connections: UserConnections
  • User
slug: str
user_id: int
flags: int
verified: bool
premium_type: int
created_at: datetime
description: str
location: str
gender: Optional[str]
birthday: Optional[datetime]
email: Optional[str]
occupation: Optional[str]
banner: Optional[str]
premium: bool
staff: bool
likes: int
  • Discord
id: int
username: str
full_username: str
avatar: Optional[str]
avatar_url: str
is_avatar_animated: bool
discriminator: str
flags: int
  • UserConnections
website: Optional[str]
instagram: Optional[str]
snapchat: Optional[str]
linkedin: Optional[str]
discord: List[DiscordConnection]
  • PartialUser
slug: str
verified: bool
staff: bool
premium: bool
likes: int
description: Optional[str]
discord: Discord
  • DiscordConnection
connection_type: str
name: str
id: str

Metadata

Release files for pydiscordbio 1.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydiscordbio 1.2.3
File Size Uploaded
pydiscordbio-1.2.3.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydiscordbio 1.2.3
File Interpreter ABI Platform
pydiscordbio-1.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 kB

Release files / pydiscordbio-1.2.3.tar.gz

Download URL pydiscordbio-1.2.3.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c3e564621b2fdc8c1d1c6fdcd851db26bd1598d2c12fcd8e5f4457987161f80e
BLAKE2b-256 checksum
How to use checksums
5c9637cc1925f43d7dca782677224c106774af8b0e0aa00132e3f9e19a8a8997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

Release files / pydiscordbio-1.2.3-py3-none-any.whl

Download URL pydiscordbio-1.2.3-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c13bad076eacd0ea15336c550949cfa4c056adf25c3faf1f3d6ff84d927c5e4
BLAKE2b-256 checksum
How to use checksums
10234422bf40d9d02de317746c44f562dd6e632c766e888c64c329c1f60227f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

1.2.3 This release

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.14

2 release files

1.1.13

2 release files

1.1.12

2 release files

1.1.11

2 release files

1.1.10

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page