Skip to content

Commit b344251

Browse files
committed
Easier Installation via setup.py or pip3
1 parent bdc5d29 commit b344251

File tree

6 files changed

+43
-3
lines changed

6 files changed

+43
-3
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,19 @@ TS3Proxy aims to be a complete solution for proxy ts3. It allows you to hide the
55
- Proxy TS3 UDP Port
66
- Proxy TS3 Filetransfer Port
77
- Proxy TS3 Serverquery Port
8+
9+
## HowTo install
10+
11+
Just unzip the latest release (or master branch) zip file open a terminal in this folder:
12+
13+
pip3 install -e .
14+
15+
And just run it afterwards with an NON-ROOT user via command line:
16+
17+
ts3proxy
18+
19+
## HowTo run (Alternative)
20+
21+
If you have installed all dependencies you can just run it with:
22+
23+
python3 -m ts3proxy.ts3proxy

setup.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from setuptools import setup, find_packages
2+
3+
4+
install_requires = [
5+
"PyYAML",
6+
]
7+
8+
setup(
9+
name="ts3proxy",
10+
author="Karl-Martin Minkner",
11+
author_email="[email protected]",
12+
packages=find_packages(),
13+
include_package_data=True,
14+
install_requires=install_requires,
15+
entry_points={
16+
"console_scripts": [
17+
"ts3proxy = ts3proxy.ts3proxy:main",
18+
],
19+
},
20+
)

proxy/tcp.py ts3proxy/tcp.py

File renamed without changes.
File renamed without changes.

ts3proxy.py ts3proxy/ts3proxy.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
import threading
55
import yaml
66

7-
from proxy.udp import Udp
8-
from proxy.tcp import Tcp
7+
from .udp import Udp
8+
from .tcp import Tcp
99

10-
if __name__ == '__main__':
10+
11+
def main():
1112
try:
1213
with open("config.yml", 'r') as stream:
1314
try:
@@ -37,3 +38,6 @@
3738
t3.start()
3839
except KeyboardInterrupt:
3940
exit(0)
41+
42+
if __name__ == '__main__':
43+
main()

proxy/udp.py ts3proxy/udp.py

File renamed without changes.

0 commit comments

Comments
 (0)