Skip to content

Commit a571729

Browse files
author
Pietro Albini
committed
Let's welcome botogram 0.1
This is the initial alpha release of botogram.
1 parent 4f5e95a commit a571729

File tree

9 files changed

+137
-61
lines changed

9 files changed

+137
-61
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 Pietro Albini
3+
Copyright (c) 2015-2016 Pietro Albini
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
## botogram [![Build Status](https://img.shields.io/travis/pietroalbini/botogram/master.svg)](https://travis-ci.org/pietroalbini/botogram) [![News channel](https://img.shields.io/badge/telegram_channel-@botogram__framework-0d86d7.svg?style=flat)][channel]
22

3-
_A microframework for Telegram bots_
3+
_Just focus on your bots._
44

5-
botogram is a MIT-licensed microframework, which aims to simplify the creation
6-
of [Telegram bots][1]. It offers a concise, simple API, which allows you to
7-
spend all your creativity in the bot, without worrying about anything else.
5+
botogram is a Python framework, which allows you to focus just on creating your
6+
[Telegram bots][1], without worrying about the underlying Bots API.
87

9-
It also provides a robust, fully scalable bot runner process, which will be
10-
able to process fastly high workloads. And as if this isn't enough, it has
11-
builtin support for commands, with an automatically-generated ``/help``
12-
command.
8+
While most of the libraries for Telegram out there just wrap the Bots API,
9+
botogram focuses heavily on the development experience, aiming to provide you
10+
the best API possible. Most of the Telegram implementation details are managed
11+
by botogram, so you can just focus on your bot.
1312

1413
```python
1514
import botogram
@@ -27,14 +26,22 @@ if __name__ == "__main__":
2726
You can find the documentation at [botogram.pietroalbini.io][2]. Also, you can
2827
get all the news about botogram in its [Telegram channel][channel].
2928

30-
**Supported Python versions**: 3.4, 3.5
29+
> Please note botogram currently doesn't support some of the upstream API
30+
> features. All of them will be implemented in botogram 1.0
31+
32+
**Supported Python versions**: 3.4, 3.5
33+
**License**: MIT
3134

3235
### Installation
3336

34-
botogram is currently in development, so a release doesn't exist yet.
35-
But if you want to install it anyway, you can clone the repository and install
36-
it with setuptools. Be sure to have Python 3.4 (or a newer version), pip,
37-
virtualenv, setuptools and [invoke][3] installed:
37+
You can install easily botogram with pip (be sure to have Python 3.4 or higher
38+
installed):
39+
40+
$ python3 -m pip install botogram
41+
42+
If you want to install from the source code, you can clone the repository and
43+
install it with setuptools. Be sure to have Python 3.4 (or a newer version),
44+
pip, virtualenv, setuptools and [invoke][3] installed:
3845

3946
$ git clone https://github.com/pietroalbini/botogram.git
4047
$ cd botogram
@@ -44,6 +51,6 @@ On some Linux systems you might need to wrap the ``make install`` command with
4451
``sudo``, if you don't have root privileges.
4552

4653
[1]: https://core.telegram.org/bots
47-
[2]: http://botogram.pietroalbini.io/docs
54+
[2]: https://botogram.pietroalbini.io/docs
4855
[3]: http://www.pyinvoke.org
4956
[channel]: https://telegram.me/botogram_framework

docs/buildthedocs.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
versions:
2-
- name: "dev"
3-
source:
4-
provider: local
5-
path: docs
6-
directory: .
7-
title: Development
8-
notice: unstable
9-
warning: This documentation is for the unstable and in-development version of botogram!
2+
3+
- name: "dev"
4+
source:
5+
provider: local
6+
path: docs
7+
directory: .
8+
title: Development
9+
notice: unstable
10+
warning: This documentation is for the unstable and in-development version of botogram!
11+
12+
- name: "0.1"
13+
source:
14+
provider: git
15+
url: .
16+
checkout: release-0.1
17+
directory: docs
18+
title: botogram 0.1
19+
notice: alpha
20+
warning: null

docs/changelog.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.. Copyright (c) 2016 Pietro Albini <pietro@pietroalbini.io>
2+
Released under the MIT license
3+
4+
.. _changelog:
5+
6+
~~~~~~~~~~~~~~~~~~
7+
botogram changelog
8+
~~~~~~~~~~~~~~~~~~
9+
10+
Here you can see what changed in every botogram release.
11+
12+
.. _changelog-0.1:
13+
14+
botogram 0.1
15+
============
16+
17+
*Alpha release, released on February 18th, 2016*
18+
19+
This is the initial alpha release of botogram.

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
master_doc = "index"
2020

2121
project = "botogram"
22-
copyright = "2015 Pietro Albini"
22+
copyright = "2015-2016 Pietro Albini"
2323
author = "Pietro Albini"
2424

25-
version = "1.0"
26-
release = "1.0"
25+
version = "0.1"
26+
release = "0.1"
2727

2828
language = None
2929

docs/index.rst

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
55
botogram documentation
66
~~~~~~~~~~~~~~~~~~~~~~
77

8-
*A microframework for Telegram bots.*
8+
*Just focus on your bots.*
99

10-
botogram is a MIT-licensed microframework, which aims to simplify the creation
11-
of `Telegram bots`_. It offers a concise, simple API, which allows you to spend
12-
all your creativity in the bot, without worrying about anything else.
10+
botogram is a Python framework, which allows you to focus just on creating your
11+
`Telegram bots`_, without worrying about the underlying Bots API.
1312

14-
It also provides a robust, fully scalable bot runner process, which will be
15-
able to process fastly high workloads. And as if this isn't enough, it has
16-
builtin support for commands, with an automatically-generated ``/help``
17-
command.
13+
While most of the libraries for Telegram out there just wrap the Bots API,
14+
botogram focuses heavily on the development experience, aiming to provide you
15+
the best API possible. Most of the Telegram implementation details are managed
16+
by botogram, so you can just focus on your bot.
17+
18+
botogram is released under the MIT license.
1819

1920
::
2021

@@ -69,6 +70,7 @@ Side notes
6970
.. toctree::
7071
:maxdepth: 2
7172

73+
changelog
7274
license
7375

7476
.. _Telegram bots: https://core.telegram.org/bots

docs/install.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ Installation of botogram
99

1010
botogram is available `on the Python Packages Index`_, so you can install it
1111
really easily with the `pip`_ command-line utility. Before installing it, be
12-
sure to have Python_ 3.4 (or a newer version), pip_, virtualenv_ and setuptools_
13-
installed on your system. Then, issue the following command::
12+
sure to have Python_ 3.4 (or a newer version), pip_, virtualenv_ and
13+
setuptools_ installed on your system. Then, issue the following command::
1414

15-
$ pip3 install botogram
15+
$ python3 -m pip install botogram
1616

1717
Perfect, botogram is now installed! Now, you can follow the
1818
":ref:`quickstart`" chapter if you want to create a bot right now!
@@ -25,8 +25,7 @@ Living on the edge
2525

2626
If you don't mind having some instability or bugs, and you want the latest
2727
features not yet released, you can clone the `botogram git repository`_,
28-
install `virtualenv <virtualenv-install>`_, `invoke`_ and execute the
29-
installation from source::
28+
install `virtualenv`_, `invoke`_ and execute the installation from source::
3029

3130
$ git clone https://github.com/pietroalbini/botogram.git
3231
$ cd botogram
@@ -94,5 +93,4 @@ one::
9493
.. _setuptools: https://setuptools.pypa.io
9594
.. _botogram git repository: https://github.com/pietroalbini/botogram
9695
.. _virtualenv: https://virtualenv.pypa.io
97-
.. _virtualenv-install: https://virtualenv.pypa.io/en/latest/installation.html
9896
.. _invoke: https://www.pyinvoke.org

docs/license.rst

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
1-
.. Copyright (c) 2015 Pietro Albini <pietro@pietroalbini.io>
1+
.. Copyright (c) 2015-2016 Pietro Albini <pietro@pietroalbini.io>
22
Released under the MIT license
33
44
~~~~~~~~~~~~~~~
55
The MIT license
66
~~~~~~~~~~~~~~~
77

8-
Copyright (c) 2015 Pietro Albini
8+
botogram is released under the MIT license. This means you can use it as you
9+
want, change it and redistribute it, but you must keep the following copyright
10+
notice:
911

10-
Permission is hereby granted, free of charge, to any person obtaining a copy
11-
of this software and associated documentation files (the "Software"), to deal
12-
in the Software without restriction, including without limitation the rights
13-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14-
copies of the Software, and to permit persons to whom the Software is furnished
15-
to do so, subject to the following conditions:
12+
::
1613

17-
The above copyright notice and this permission notice shall be included in all
18-
copies or substantial portions of the Software.
14+
Copyright (c) 2015-2016 Pietro Albini
1915

20-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26-
SOFTWARE.
16+
Permission is hereby granted, free of charge, to any person obtaining a copy
17+
of this software and associated documentation files (the "Software"), to
18+
deal in the Software without restriction, including without limitation the
19+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
20+
sell copies of the Software, and to permit persons to whom the Software is
21+
furnished to do so, subject to the following conditions:
22+
23+
The above copyright notice and this permission notice shall be included in
24+
all copies or substantial portions of the Software.
25+
26+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
31+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
32+
IN THE SOFTWARE.

setup.py

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,52 @@
11
#!/usr/bin/python3
2+
'''
3+
========
4+
botogram
5+
========
6+
7+
botogram is a Python framework, which allows you to focus just on
8+
creating your `Telegram bots`_, without worrying about the underlying
9+
Bots API.
10+
11+
While most of the libraries for Telegram out there just wrap the Bots
12+
API, botogram focuses heavily on the development experience, aiming to
13+
provide you the best API possible. Most of the Telegram implementation
14+
details are managed by botogram, so you can just focus on your bot.
15+
16+
::
17+
18+
import botogram
19+
bot = botogram.create("API-KEY")
20+
21+
@bot.command("hello")
22+
def hello_command(chat, message, args):
23+
"""Say hello to the world!"""
24+
chat.send("Hello world")
25+
26+
if __name__ == "__main__":
27+
bot.run()
28+
29+
Want to get started? `Go to the documentation_`
30+
31+
.. _Telegram bots: https://core.telegram.org/bots
32+
.. _Go to the documentation: https://botogram.pietroalbini.io/docs
33+
'''
234

335
import setuptools
436

537

638
setuptools.setup(
739
name = "botogram",
8-
version = "1.0.dev0",
9-
url = "http://botogram.pietroalbini.io",
40+
version = "0.1",
41+
url = "https://botogram.pietroalbini.io",
1042

1143
license = "MIT",
1244

1345
author = "Pietro Albini",
1446
author_email = "pietro@pietroalbini.io",
1547

16-
description = "A Python microframework for Telegram bots",
48+
description = "A Python framework for Telegram bots",
49+
long_description = __doc__,
1750

1851
packages = [
1952
"botogram",
@@ -30,7 +63,7 @@
3063
zip_safe = False,
3164

3265
classifiers = [
33-
"Development Status :: 2 - Pre-Alpha",
66+
"Development Status :: 3 - Alpha",
3467
"Environment :: Other Environment",
3568
"Intended Audience :: Developers",
3669
"License :: OSI Approved :: MIT License",

0 commit comments

Comments
 (0)