Metadata-Version: 2.1
Name: phpbb-topic-post
Version: 0.9
Summary: PhpBB add topic and post
Home-page: https://github.com/madyel/phpbb
Author: MaDyEl
Author-email: madyel83@tutanota.com
License: MIT
Platform: UNKNOWN
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: bcrypt (==3.2.0)
Requires-Dist: cffi (==1.15.0)
Requires-Dist: cryptography (==36.0.2)
Requires-Dist: paramiko (==2.10.3)
Requires-Dist: pycparser (==2.21)
Requires-Dist: PyMySQL (==1.0.2)
Requires-Dist: PyNaCl (==1.5.0)
Requires-Dist: six (==1.16.0)
Requires-Dist: sshtunnel (==0.4.0)

Install:

```shell
pip install PhpBB-Utility
```

Example:

```python
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()
```

