PhpBB add topic and post
Project description
Install:
pip install PhpBB-Utility
Example:
from madyel import PhpBB
if __name__ == '__main__':
config = {
'ssh_host': '192.168.0.32',
'ssh_username': 'root',
'ssh_password': 'password',
'ssh_port': 22,
'database_username': 'phpBBUser',
'database_password': 'phpBBPassword',
'database_name': 'phpBBDB',
'localhost': '127.0.0.1',
'port_db': 3306,
}
p = PhpBB(config, enable_ssh=True)
category_id_phpbb = 4
username_phpbb = "lilli"
title = "Hello"
body_post = "Hello World"
print(p.insert_topic_post(category_id_phpbb, username_phpbb, title, body_post))
p.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
phpbb-topic-post-0.9.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for phpbb_topic_post-0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97b9714a98f3c68bad9c4556deee199ce32a58270e06288cfe0ffc521d45ae9a |
|
MD5 | 74c67fa1fc904a0337b02e1a13573a35 |
|
BLAKE2b-256 | 1825df80896a7a34eae3e0e394b6ef3fd3e8aa330df1bfb7c0663e413ca5d9ab |