Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

swagsocialbots

Now on PyPI: https://pypi.org/project/swagsocialbots/

Python module to make bots in swagsocial with swagsocial.py

Created by maxie!

Getting your API key

Log into your desired swagsocial account and go to Settings --> API, or click this link

If you would like to grant manage post permissions, which includes making posts and replies. It also allows deleting posts and replies, so be careful!

an example

from swagsocialbots import SwagBot
import time

bot = SwagBot()

@bot.on_mention() # will reply to a post the bot is tagged on
def on_mention(ctx):
    ctx.reply(f"Hello, @{ctx.post.author.username}")

# will do anything in a forever loop, useful for bots that
# post something every N amount of time
@bot.forever_loop()
def forever():
    bot.post("meow")
    time.sleep(3600) # bot will post "meow" every 1 hour

bot.run("api key")

Metadata

Release files for swagsocialbots 1.0.0.dev6

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

Source distribution (sdist)

Source distribution for swagsocialbots 1.0.0.dev6
File Size Uploaded Provenance
swagsocialbots-1.0.0.dev6.tar.gz 16.1 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 31.2 kB

Release files / swagsocialbots-1.0.0.dev6.tar.gz

Download URL swagsocialbots-1.0.0.dev6.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3386974b5c0b8206e4583a23cbd618b372a3465ae4f17e552c82d4bd3c3d3a32
BLAKE2b-256 checksum
How to use checksums
febc649b83f8ab352a8243e189f00f713e5bbecf2c41f3fc3bf9cf81fe81963e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / swagsocialbots-1.0.0.dev6-py3-none-any.whl

Download URL swagsocialbots-1.0.0.dev6-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba2272451e20b81693eabd14160f31244ee655cf05bd1f9697f36ccbc73d789d
BLAKE2b-256 checksum
How to use checksums
2760e50752c8504b0073ee39f08f21abae3574567cabb70cc15ecfbcfbeda4c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for swagsocialbots 1.0.0.dev6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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