Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jpetrucciani committed Sep 24, 2018
0 parents commit 0f84291
Show file tree
Hide file tree
Showing 21 changed files with 666 additions and 0 deletions.
127 changes: 127 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
tmp.py
### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

### Python Patch ###
.venv/

### Python.VirtualEnv Stack ###
# Virtualenv
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts
pyvenv.cfg
pip-selfcheck.json
76 changes: 76 additions & 0 deletions .prospector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
strictness: veryhigh
doc-warnings: true
member-warnings: false
test-warnings: false

ignore-patterns:
- (^|/)\..+
- .*\.html

pylint:
disable:
- bad-continuation
- broad-except
- import-error
- import-self
- logging-format-interpolation
- missing-docstring
- no-self-use
- unused-argument
- wrong-import-order

options:
max-args: 10
max-locals: 100
max-returns: 6
max-branches: 50
max-statements: 180
max-parents: 10
max-attributes: 10
min-public-methods: 0
max-public-methods: 20
max-module-lines: 2000
max-line-length: 100

mccabe:
options:
max-complexity: 30

pep8:
disable:
- N802
- N807
- W503
options:
max-line-length: 100
single-line-if-stmt: n

vulture:
run: false

pyroma:
run: false
disable:
- PYR19
- PYR16

pep257:
disable:
- D000
- D100
- D101
- D102
- D103
- D104
- D105
- D107
- D200
- D203
- D205
- D212
- D204
- D300
- D400
- D401
- D404
- D403
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: python
dist: xenial
python:
- '3.6'
install:
- pip install -r requirements.txt
- pip install -r dev-requirements.txt
script: make
after_script: cd ~
after_success: coveralls --verbose
deploy:
provider: pypi
user: jacobi
on:
branch: master
tags: true
password:
secure: E8P4ExPSoMqU2gkvtkfrdckiN7K5USh6YOcZGjcPOIMcJFF/5bYLinilUVEb8KxqYiDpgl/g0LhZKJYjy7BzBCk3zYQhRHpKTb+jW+EdPS7EXjbSgIDUBA6KXb0T3Pn6Kq63M/xA1j+cJ1I5l5HElvMaYuvra3QIAfexlfxKlQLuPq3sW0ok8216f5dLe09FBwcnGubdXpThPQoqDv7RbBH9W++bUc3a/SXi5UaTlV2nvqcwuRrMs61rIjycB6eCngxjU9e7Siwn1VjG+FN4pcj2Z5n0VxpbaoO3YKYY0Br0fR+E9rSVa7mJ6aNvWLOk72CoboNNqW9OUpSND/Zn5luVJPjcyGcHUyAoBX5nM0EjbhtEhXrm8RUnyjGaBHB6KxJKEVb87di5difmIw2OIATbM8DXiYb+S6DizJ5fRn5OUy1/kHoQtCfNrykI1k/lYhUmFfq+tNTsvaeP5NEGF1Q/oPmm5o0//Ck34L5VAhLvfbb9KPLJrVcjDZgcKnggbr0wtnmenPVtMDMjQy8ZZFb9o5VQZl+x29pPt8CsMesSuXYiQBV8JuhunfwtZ62y1eu7ntnTWVzlo7i+UO3zhk/wEODa3+ml069mqKl7RrLeW50hdqStkD6pPnmJ0V051ffCh4KGIDge198CC95X25MDd6Ki+QwmqLT8Lcvv5UQ=
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Jacobi Petrucciani

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

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
repo = pybugsnag
base_command = pytest
coverage = --cov-config setup.cfg --cov=$(repo)
with_report = --cov-report html
term_report = --cov-report term
xml_report = --cov-report xml
reports = $(html_report) $(term_report) $(xml_report)

all: test_all

test_all:
$(base_command) $(coverage) $(reports) -s --pyargs $(repo)


.PHONY: test_all
41 changes: 41 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

pybugsnag
=========


.. image:: https://badge.fury.io/py/pybugsnag.svg
:target: https://badge.fury.io/py/pybugsnag
:alt: PyPI version


.. image:: https://travis-ci.org/jpetrucciani/pybugsnag.svg?branch=master
:target: https://travis-ci.org/jpetrucciani/pybugsnag
:alt: Build Status


.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/ambv/black
:alt: Code style: black


A python wrapper for the Bugsnag Data Access API

COMING SOON!

Quick start
-----------

Installation
^^^^^^^^^^^^

.. code-block:: bash
# install pybugsnag
pip install pybugsnag
Basic Usage
^^^^^^^^^^^

.. code-block:: python
import pybugsnag
4 changes: 4 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
colorama==0.3.7
pytest==3.5.1
pytest-cov==2.5.1
coveralls==1.5.0
4 changes: 4 additions & 0 deletions pybugsnag/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""
pybugsnag main entrypoint for the library
"""
from pybugsnag.models.client import BugsnagDataClient # noqa
14 changes: 14 additions & 0 deletions pybugsnag/globals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""
globals
"""


__version__ = "0.0.1"


LIBRARY = "pybugsnag"
API_URL = "https://api.bugsnag.com/"


TEST_API_URL = "https://private-anon-3633b611b0-bugsnagapiv2.apiary-mock.com/"
TEST_TOKEN = "access_token"
Loading

0 comments on commit 0f84291

Please sign in to comment.