Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Commit fb24322

Browse files
committed
PyPI package for Python
PR botanio#80 merged
1 parent f4a0229 commit fb24322

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,13 @@ botan.shortenUrl(uid, url, function (err, res, body) {
5050
```
5151

5252
## <a name="py"></a>Python example
53-
You need to install requests library to use python botan lib.
54-
You can do it with
53+
You need to install botanio library using pip.
5554

56-
pip install requests
55+
pip install botanio
5756

5857
Code:
5958
```python
60-
import botan
59+
from botanio import botan
6160

6261
botan_token = '.........' # Token got from @botaniobot
6362
uid = message.from_user

botan.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
# ----------------
2-
# dont forget 'pip install requests' first
3-
# ----------------
41
# usage example:
52
#
6-
# import botan
3+
# from botanio import botan
74
#
85
# print botan.track(1111, 1, {'text':2}, 'Search')
96

setup.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from setuptools import setup
2+
3+
setup(name='botanio',
4+
version='1.0.0',
5+
description='Botan SDK: Advanced analytics for your Telegram bot',
6+
url='https://github.com/botanio/sdk',
7+
author='Botan.io team',
8+
author_email='[email protected]',
9+
license='MIT',
10+
packages=['botanio'],
11+
install_requires=[
12+
'requests',
13+
],
14+
zip_safe=False)

test.py

100755100644
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python2
22

3-
import botan
3+
from botanio import botan
4+
45
print botan.track(1111, 1, {'text':2}, 'Search')
56
print botan.track('ab', 1, {'text':2}, 'Search')

0 commit comments

Comments
 (0)