Skip to content

Commit 8fa74f6

Browse files
committed
Initial commit.
0 parents  commit 8fa74f6

17 files changed

Lines changed: 562 additions & 0 deletions

.coveragerc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[run]
2+
omit =
3+
*/tests/*
4+
*/venv/*
5+
6+
[report]
7+
exclude_lines =
8+
pragma: no cover
9+
10+
[xml]
11+
output = ./reports/cov_report.xml
12+
13+
[html]
14+
directory = ./reports/cov_report.html

.gitignore

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
48+
# Translations
49+
*.mo
50+
*.pot
51+
52+
# Django stuff:
53+
*.log
54+
local_settings.py
55+
56+
# Flask stuff:
57+
instance/
58+
.webassets-cache
59+
60+
# Scrapy stuff:
61+
.scrapy
62+
63+
# Sphinx documentation
64+
docs/_build/
65+
66+
# PyBuilder
67+
target/
68+
69+
# IPython Notebook
70+
.ipynb_checkpoints
71+
72+
# pyenv
73+
.python-version
74+
75+
# celery beat schedule file
76+
celerybeat-schedule
77+
78+
# dotenv
79+
80+
# virtualenv
81+
.venv/
82+
venv/
83+
ENV/
84+
85+
# Spyder project settings
86+
.spyderproject
87+
88+
# Rope project settings
89+
.ropeproject
90+
91+
.idea/
92+
.pytest_cache/
93+
94+
# Confidential
95+
credentials.*
96+
97+
# Javascript
98+
node_modules/
99+
.config.json
100+
.config.json.backup
101+
package-lock.json
102+
103+
config.env
104+
105+
# certs
106+
*.srl
107+
*.csr
108+
*.key
109+
*.pem

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2020 Martin Heinz
2+
3+
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:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
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.

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Blueprint/Boilerplate For Golang Projects
2+
3+
## Running
4+
5+
### From Python
6+
```shell
7+
python3 -m blueprint
8+
```
9+
10+
### Using Docker
11+
12+
```shell
13+
...
14+
```
15+
16+
### Resources
17+
- <https://realpython.com/python-application-layouts/>
18+
- <https://dev.to/codemouse92/dead-simple-python-project-structure-and-imports-38c6>
19+
- <https://github.com/navdeep-G/samplemod/blob/master/setup.py>

blueprint/__init__.py

Whitespace-only changes.

blueprint/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from .app import Blueprint
2+
3+
if __name__ == '__main__':
4+
Blueprint.run()

blueprint/app.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class Blueprint:
2+
3+
@staticmethod
4+
def run():
5+
print("Hello World...")

blueprint/resources/.gitkeep

Whitespace-only changes.

dev.Dockerfile

Whitespace-only changes.

0 commit comments

Comments
 (0)