python-simplemachinesforum
Python request API to Simple Machines Forum: https://www.simplemachines.org/
Important
A forum is for humans, please use this piece of software only in combination with YOUR OWN FORUM or by order of the forum owner itself to provide a valuable service. Be aware that bots are not tolerated on most boards and its use will lead to a ban.
What does it can?
- It can create a new topic with
new_topic()on a remote simple machines forum over the network, all it needs is a valid user account to login. - Given a topic ID, toggle the topic's stickiness with
toggle_sticky(). - Given a subject name and board, return the topic id for the matching topic with
get_topic_id. - Use the advanced search feature, and return the list of matches with
advanced_search(). - Given a board, return the topic id for all currently stickied topics with
get_stickied_posts().
Installation
PyPI
pip install simplemachinesforum
https://pypi.org/project/simplemachinesforum/
Conda
conda install -c conda-forge simplemachinesforum
https://anaconda.org/conda-forge/simplemachinesforum
How to create a new topic?
from simplemachinesforum.simplemachinesforum import SimpleMachinesForum
smf_url = "https://www.any-simplemachinesforum.com"
smf_user = "user_name"
smf_pass = "password"
smf = SimpleMachinesForum(smf_url, smf_user, smf_pass)
# 1 = board id:
smf.new_topic(1, "subject", "This is the message to post!")
Documentation
https://oliver-zehentleitner.github.io/python-simplemachinesforum/
Project, code and downloads:
https://github.com/oliver-zehentleitner/python-simplemachinesforum
Wiki
https://github.com/oliver-zehentleitner/python-simplemachinesforum/wiki
How to report bugs or suggest improvements?
Please open a new issue: https://github.com/oliver-zehentleitner/python-simplemachinesforum/issues
If you report a bug, try first the latest release via download
or with pip install simplemachinesforum --upgrade. If the issue still exists, provide the error trace, OS
and python version and explain how to reproduce the error. A demo script is appreciated.
Contributing
python-simplemachinesforum is an open source project which welcomes contributions which can be anything from simple
documentation fixes to new features. To contribute, fork the project on GitHub and send a pull request.
Contributors
We open source!
Donate
Since you are probably a developer yourself, you will understand very well that the creation of open source software is not free - it requires technical knowledge, a lot of time and also financial expenditure.
If you would like to help me to dedicate my time and energy to this project, even small donations are very welcome.
BTC: 39fS74fvcGnmEk8JUV8bG6P1wkdH29GtsA
ETH: 0x1C15857Bf1E18D122dDd1E536705748aa529fc9C
Commercial Support
Do you need a developer, operator or consultant? Contact us for a non-binding initial consultation!
Metadata
Release files for simplemachinesforum 0.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simplemachinesforum-0.4.5.tar.gz | 10.7 kB | Without provenance | Details for simplemachinesforum-0.4.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simplemachinesforum-0.4.5-py3-none-any.whl | Python 3 | none | any | Details for simplemachinesforum-0.4.5-py3-none-any.whl |
Total release size: 20.3 kB
Release files / simplemachinesforum-0.4.5.tar.gz
| Download URL | simplemachinesforum-0.4.5.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23d29eb363c4f77eefdf670a6df66f88ea33128a53d422ab80c3fab150e9a5ed
|
|
BLAKE2b-256 checksum How to use checksums |
66e156880a573f0ab8dcd5a4dd6877a7db54ec2b7493b01a6c7852770a0ccaa4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.2
|
Release files / simplemachinesforum-0.4.5-py3-none-any.whl
| Download URL | simplemachinesforum-0.4.5-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bd77cd5b525a3617c080e138cd29a7a0d3e6d083097a8242484a424a554fd9c
|
|
BLAKE2b-256 checksum How to use checksums |
139bcd6143fd50c975cfc07690bb7c5884ec98bd36a5cec3a45b24ce88f28342
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.2
|
Security for simplemachinesforum 0.4.5
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.