! PRE-VERSION !
Python Lib für die XenForo api
Sample:
from LordXen import XenForo
forum_url = input('URL ? ')
api_key = input('API_KEY ? ')
x = XenForo(url=forum_url, api_key=api_key)
xen_thread_800 = x.get_thread(800)
s = xen_thread_800.exists()
if s:
print("Thread with id 800 exist")
else:
print("Thread with id 800 not exist")
# get node
xen_node = x.get_node(209)
# create new thread
new_xen_thread = xen_node.create_thread('Test', message="LOL", tags='test')
# edit thread
s = new_xen_thread.edit(add_tags=['hello', 'world'], remove_tags=['test'])
if s:
print(f"Thread with id {new_xen_thread.thread_id} edited!")
# post to thread
s = new_xen_thread.create_post('Hallo Test')
if s:
print(f"Created post for {new_xen_thread.thread_id}")
Output:
Thread with id 800 exist
Thread with id 17291 edited!
Created post for 17291
by LordBex
Release files for LordXen 2023.7.23
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| LordXen-2023.7.23.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| LordXen-2023.7.23-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / LordXen-2023.7.23.tar.gz
| Download URL | LordXen-2023.7.23.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
988ab59f87501118d4c87c5b57e06ddae8c4acdf6a3a6eff6d72afc7f7b40d53
|
|
BLAKE2b-256 checksum How to use checksums |
fff170a953d41ff909a6713004e65382e425551b7b9f42c1bfc17d0afc72f80b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / LordXen-2023.7.23-py3-none-any.whl
| Download URL | LordXen-2023.7.23-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9d416ff3a4a6183c614fe41f0484d9da3dd533d7a3adf667e44cad0e4ec2643
|
|
BLAKE2b-256 checksum How to use checksums |
404b4e1c0ba041971ab504fa9d13bc91f6a14c8ee9da3d21195e5aba682b3a44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|