Skip to main content

GitHub PyPI Tests

inford 📬

inford is a python library for sending dsicord webhooks.

Installation

Use the package manager pip to install foobar.

pip install inford

Usage

from inford import DiscordWebhook

web = DiscordWebhook(
    webhook_url="https://discord.com/api/webhooks/123***/abc***",
    username="inford",
    avatar_url="https://avatars.githubusercontent.com/u/55992548?v=4",
    content="Lorem ipsum dolor sit",
    title="Hey!",
    color="#0099ff",
    description="Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
    author_name="INFORD",
    author_url="https://github.com/Prathamesh-B/inford",
    footer_text="thank you",
    footer_icon="https://user-images.githubusercontent.com/5679180/79618120-0daffb80-80be-11ea-819e-d2b0fa904d07.gif",
    image="https://avatars.githubusercontent.com/u/55992548?v=4",
    thumbnail="https://avatars.githubusercontent.com/u/55992548?v=4",
)
web.send() #or use send=True as a parameter

Image

Presets

from inford import Presets

web = Presets(
    webhook_url="https://discord.com/api/webhooks/123***/AbC***",
)

web.info("Python", "Update available")
web.error("Database", "No data found")
web.warn("System", "Ram overload")
web.success("Program", "Executed successfully")

Image

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Metadata

Release files for inford 1.1.0

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

Source distribution (sdist)

Source distribution for inford 1.1.0
File Size Uploaded
inford-1.1.0.tar.gz 4.1 kB Details

Built distribution (wheel)

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

Total release size: 8.6 kB

Release files / inford-1.1.0.tar.gz

Download URL inford-1.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a446e47ca2314dea1569bef34491e3e016936d5b7fde54903baf2344498e0960
BLAKE2b-256 checksum
How to use checksums
4cc9b3558fa4613829f1cf378ef64712c59d23580caf5b2338495f1955045140
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

Release files / inford-1.1.0-py3-none-any.whl

Download URL inford-1.1.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14cfb5ce9cee99666d004876fa066333b6d4b35aef8030f00449eb4f3c97821b
BLAKE2b-256 checksum
How to use checksums
415af966b628d61d01c1c45bfb8a6ca83f63e6c3d1db044b9ec59cc692d5091b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.1.0 This release

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