forum-py
forumpy is an unofficial SA-MP forum api.This python library ,integerated with selenium and phantomJS,helps you to automate SA-MP forum acitivities like send and get pms,threads,userinfo,contacts etc.Please view the example files for information about using these features in your python application.forumpy is still under development and has not yet been released.
Quick examples
-
Basic
from forum.account import Account name = input("Input your forum user name : ") password = input("Input your forum password : ") a = Account(name,password) print("Logined with user id : ",a.id) print("\t**Account info**\n",a.User.info()) print("\n\t***Contacts***\n") print("\tId\tUsername") for i in a.getcontacts(): print("\t",i.id,"\t",i.name) print("\n\t***Threads***\n") print("\tTitle\tRatings\tAuthor") for i in a.User.getthreads(): print(i.title,"\t",i.getrating(),"\t",i.author.name)
-
Send and Get private messages
from forum.user import User from forum.account import Account name = input("Input forum username : ") password = input("Input forum password : ") a = Account(name,password) print(a.getpms()) rec_names = input("Input name of recipents (seperated by space) : ").split(" ") users = [] for rec_name in rec_names: users.append(User(a.getIdFromUserName(rec_name))) title = input("Input title : ") content = input("Input content : ") a.send_pm(users,title,content)
Please view examples files for more examples
Requirements
- Python 3.5+
SeleniumlibraryPhantomJSheadless web driverBeautifulSouplibrary
Metadata
Release files for forumpy 0.0.3
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 |
|---|---|---|---|---|
| forumpy-0.0.3.tar.gz | 8.1 kB | Without provenance | Details for forumpy-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| forumpy-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for forumpy-0.0.3-py3-none-any.whl |
Total release size: 19.9 kB
Release files / forumpy-0.0.3.tar.gz
| Download URL | forumpy-0.0.3.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc96a0060c598769c4ed9e486e6a97846c255cea17e6b34a0d10fb9600d8ae28
|
|
BLAKE2b-256 checksum How to use checksums |
72d572e09d53814bbe69951c6c5260327be6ea59ad7bcc7a8125ea63d409a1b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / forumpy-0.0.3-py3-none-any.whl
| Download URL | forumpy-0.0.3-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2415e721dfa624f2450755d11cbd2da81287d90335ad8e25565f66eeb48e399b
|
|
BLAKE2b-256 checksum How to use checksums |
22f41e5cffe007f7a7116bc29ae3713b2b5814b7896445eff48baebb8d97edb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for forumpy 0.0.3
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.