Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Sep 27, 2019
1 parent 8b3ceaa commit 2a91f2c
Show file tree
Hide file tree
Showing 11 changed files with 815 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.coverage
coverage.xml
*.egg-info
.eggs/
*.pyc
app.db
./tmp
build/
dist/
docs/_build/
.idea
.idea/
env
venv
*.sublime*
.vscode/
.tox
crontasks_config.py
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
prune *.pyc
recursive-include es/ *
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '2'
services:
elasticsearch:
image: elasticsearch:7.3.2
environment:
discovery.type: single-node
ports:
- 9200:9200
- 9300:9300

kibana:
image: docker.elastic.co/kibana/kibana:7.3.2
ports:
- "5601:5601"

volumes:
redis:
external: false
37 changes: 37 additions & 0 deletions es/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
from es.db import connect
from es.exceptions import (
DataError,
DatabaseError,
Error,
IntegrityError,
InterfaceError,
InternalError,
NotSupportedError,
OperationalError,
ProgrammingError,
Warning,
)


__all__ = [
"connect",
"apilevel",
"threadsafety",
"paramstyle",
"DataError",
"DatabaseError",
"Error",
"IntegrityError",
"InterfaceError",
"InternalError",
"NotSupportedError",
"OperationalError",
"ProgrammingError",
"Warning",
]


apilevel = "2.0"
# Threads may share the module and connections
threadsafety = 2
paramstyle = "pyformat"
Loading

0 comments on commit 2a91f2c

Please sign in to comment.