Skip to content

Commit 133ecff

Browse files
committed
Initial commit
0 parents  commit 133ecff

File tree

9 files changed

+290
-0
lines changed

9 files changed

+290
-0
lines changed

.coveragerc

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# .coveragerc to control coverage.py
2+
[run]
3+
branch = True
4+
omit =
5+
6+
[report]
7+
# Regexes for lines to exclude from consideration
8+
exclude_lines =
9+
# Have to re-enable the standard pragma
10+
pragma: no cover
11+
12+
# Don't complain about missing debug-only code:
13+
def __repr__
14+
if self\.debug
15+
16+
# Don't complain about some magic methods:
17+
def __str__
18+
19+
# Don't complain if tests don't hit defensive assertion code:
20+
raise AssertionError
21+
raise NotImplementedError
22+
23+
# Don't complain if non-runnable code isn't run:
24+
if 0:
25+
if __name__ == .__main__.:
26+
27+
ignore_errors = True

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[*.{py,md,ini,cfg,in}]
10+
indent_style = space
11+
indent_size = 4
12+
13+
[*.{json,yml}]
14+
indent_style = space
15+
indent_size = 2

.gitignore

+140
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
2+
# Created by https://www.gitignore.io/api/osx,python,visualstudiocode
3+
4+
### OSX ###
5+
*.DS_Store
6+
.AppleDouble
7+
.LSOverride
8+
9+
# Icon must end with two \r
10+
Icon
11+
12+
# Thumbnails
13+
._*
14+
15+
# Files that might appear in the root of a volume
16+
.DocumentRevisions-V100
17+
.fseventsd
18+
.Spotlight-V100
19+
.TemporaryItems
20+
.Trashes
21+
.VolumeIcon.icns
22+
.com.apple.timemachine.donotpresent
23+
24+
# Directories potentially created on remote AFP share
25+
.AppleDB
26+
.AppleDesktop
27+
Network Trash Folder
28+
Temporary Items
29+
.apdisk
30+
31+
### Python ###
32+
# Byte-compiled / optimized / DLL files
33+
__pycache__/
34+
*.py[cod]
35+
*$py.class
36+
37+
# C extensions
38+
*.so
39+
40+
# Distribution / packaging
41+
.Python
42+
build/
43+
develop-eggs/
44+
dist/
45+
downloads/
46+
eggs/
47+
.eggs/
48+
lib/
49+
lib64/
50+
parts/
51+
sdist/
52+
var/
53+
wheels/
54+
*.egg-info/
55+
.installed.cfg
56+
*.egg
57+
58+
# PyInstaller
59+
# Usually these files are written by a python script from a template
60+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
61+
*.manifest
62+
*.spec
63+
64+
# Installer logs
65+
pip-log.txt
66+
pip-delete-this-directory.txt
67+
68+
# Unit test / coverage reports
69+
htmlcov/
70+
.tox/
71+
.coverage
72+
.coverage.*
73+
.cache
74+
.pytest_cache/
75+
nosetests.xml
76+
coverage.xml
77+
*.cover
78+
.hypothesis/
79+
80+
# Translations
81+
*.mo
82+
*.pot
83+
84+
# Flask stuff:
85+
instance/
86+
.webassets-cache
87+
88+
# Scrapy stuff:
89+
.scrapy
90+
91+
# Sphinx documentation
92+
docs/_build/
93+
94+
# PyBuilder
95+
target/
96+
97+
# Jupyter Notebook
98+
.ipynb_checkpoints
99+
100+
# pyenv
101+
.python-version
102+
103+
# celery beat schedule file
104+
celerybeat-schedule.*
105+
106+
# SageMath parsed files
107+
*.sage.py
108+
109+
# Environments
110+
.env
111+
.venv
112+
env/
113+
venv/
114+
ENV/
115+
env.bak/
116+
venv.bak/
117+
118+
# Spyder project settings
119+
.spyderproject
120+
.spyproject
121+
122+
# Rope project settings
123+
.ropeproject
124+
125+
# mkdocs documentation
126+
/site
127+
128+
# mypy
129+
.mypy_cache/
130+
131+
### VisualStudioCode ###
132+
.vscode/*
133+
!.vscode/settings.json
134+
!.vscode/tasks.json
135+
!.vscode/launch.json
136+
!.vscode/extensions.json
137+
.history
138+
139+
140+
# End of https://www.gitignore.io/api/osx,python,visualstudiocode

MANIFEST.in

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include MANIFEST.in
2+
include *.md
3+
graft aiotelegraf
4+
prune tests
5+
global-exclude __pycache__
6+
global-exclude *.py[co]

README.md

Whitespace-only changes.

aiotelegraf/__init__.py

Whitespace-only changes.

setup.cfg

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[bdist_wheel]
2+
universal = 1
3+
4+
[flake8]
5+
ignore =
6+
# E501: line too long (82 > 79 characters)
7+
E501,
8+
# E731: do not assign a lambda expression, use a def
9+
E731
10+
max-line-length = 120
11+
statistics = True
12+
13+
[isort]
14+
combine_as_imports = True
15+
default_section = LOCALFOLDER
16+
force_grid_wrap = True
17+
include_trailing_comma = True
18+
known_first_party =
19+
known_standard_library =
20+
known_third_party =
21+
telegraf
22+
multi_line_output = 3
23+
not_skip = __init__.py
24+
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
25+
skip =
26+
.eggs
27+
.tox
28+
venv

setup.py

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
from os import path
2+
from setuptools import (
3+
find_packages,
4+
setup,
5+
)
6+
7+
here = path.abspath(path.dirname(__file__))
8+
9+
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
10+
long_description = f.read()
11+
12+
setup(
13+
name='aiotelegraf',
14+
version='0.1.0.dev0',
15+
description='AsyncIO Python client for sending metrics to Telegraf',
16+
long_description=long_description,
17+
long_description_content_type='text/markdown',
18+
author='Nikita Grishko',
19+
author_email='[email protected]',
20+
url='https://github.com/Gr1N/aiotelegraf',
21+
packages=find_packages(exclude=(
22+
'tests.*',
23+
'tests',
24+
)),
25+
install_requires=[
26+
'pytelegraf<=0.4.0',
27+
],
28+
include_package_data=True,
29+
classifiers=[
30+
'Development Status :: 4 - Beta',
31+
'Intended Audience :: Developers',
32+
'Operating System :: OS Independent',
33+
'Programming Language :: Python',
34+
'Programming Language :: Python :: 3',
35+
'Programming Language :: Python :: 3.6',
36+
'Topic :: Software Development :: Libraries :: Python Modules',
37+
],
38+
keywords='asyncio telegraf',
39+
project_urls={
40+
'Bug Reports': 'https://github.com/Gr1N/aiotelegraf/issues',
41+
'Source': 'https://github.com/Gr1N/aiotelegraf',
42+
}
43+
)

tox.ini

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[tox]
2+
envlist =
3+
py36-isort
4+
py36-flake8
5+
py36-mypy
6+
py36-tests
7+
8+
[testenv]
9+
commands =
10+
flake8: flake8 aiotelegraf tests
11+
isort: isort --check-only --diff --recursive .
12+
mypy: mypy --ignore-missing-imports aiotelegraf tests
13+
tests: py.test --cov-report term --cov-report html --cov=aiotelegraf -vv {posargs:tests/}
14+
deps =
15+
flake8: flake8
16+
isort: isort
17+
mypy: mypy
18+
tests: pytest
19+
tests: pytest-cov
20+
setenv =
21+
PYTHONPATH = {toxinidir}
22+
passenv = *
23+
24+
[testenv:py36-isort]
25+
skip_install = True
26+
27+
[testenv:py36-flake8]
28+
skip_install = True
29+
30+
[testenv:py36-mypy]
31+
skip_install = True

0 commit comments

Comments
 (0)