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

Commit ca61621

Browse files
committed
Some changes and push a shiny new token
1 parent 791efc8 commit ca61621

File tree

4 files changed

+76
-0
lines changed

4 files changed

+76
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ _testing/
22
__pycache__/
33
venv/
44
.vscode/
5+
build/
6+
*.egg-info/
7+
dist/

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,33 @@
22

33
A simple event logger for [discord.py](https://github.com/Rapptz/discord.py).
44

5+
## Install
6+
7+
```sh
8+
$ python3 -m pip install -U discord-ext-science
9+
```
10+
11+
## Extras
12+
13+
### [`databases`](https://github.com/encode/databases) package
14+
15+
You may want to manually install [`databases`](https://github.com/encode/databases) with the correct drivers installed.
16+
17+
## Examples
18+
19+
```py
20+
from science import Scientist, EventFlags, Configuration
21+
from science.recorders.databases import DatabasesRecorder
22+
import logging
23+
24+
logging.basicConfig(filename='log.log', filemode='w', level=logging.DEBUG)
25+
26+
config = Configuration(
27+
events=EventFlags.guilds(),
28+
recorder=DatabasesRecorder("url-to-my-database")
29+
)
30+
client = Scientist(config=config)
31+
32+
33+
client.run('NzE3MDM0MDE2ODM4MTIzNjYy.XuuC3A.vffXDcn6MPA_WAnZKAbxQo2wLL0')
34+
```

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
discord.py==1.3.3

setup.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
from setuptools import setup
2+
3+
with open('requirements.txt') as f:
4+
requirements = f.read().splitlines()
5+
6+
version = '0.1.1'
7+
8+
with open('README.md', encoding='utf-8') as f:
9+
readme = f.read()
10+
11+
# basically install databases with the correct driver if they want it.
12+
extras_require = {
13+
'databases': 'databases',
14+
}
15+
16+
setup(
17+
name='discord-ext-science',
18+
author='NCPlayz',
19+
python_requires='>=3.7.0',
20+
url='https://github.com/NCPlayz/discord-ext-science',
21+
version=version,
22+
packages=['discord/ext/science'],
23+
license='MIT',
24+
description='A simple event logger for discord.py.',
25+
long_description=readme,
26+
long_description_content_type='text/markdown',
27+
include_package_data=True,
28+
install_requires=requirements,
29+
extras_require=extras_require,
30+
classifiers=[
31+
'License :: OSI Approved :: MIT License',
32+
'Intended Audience :: Developers',
33+
'Natural Language :: English',
34+
'Operating System :: OS Independent',
35+
'Programming Language :: Python :: 3.8',
36+
'Programming Language :: Python :: 3.7',
37+
'Topic :: Internet',
38+
'Topic :: Software Development :: Libraries',
39+
'Topic :: Software Development :: Libraries :: Python Modules',
40+
'Topic :: Utilities',
41+
]
42+
)

0 commit comments

Comments
 (0)