Skip to main content

This util creates new service of python. This one has some additional command cli for control of development

Project description

# Tamplar

Tamplar is service generator. This project can to help you control your development. We think, you should development with isolated environment. Therefore we creates docker-compose for local debugging and testing.

Now, we use [this](https://github.com/U-Company/python-service-layout) python layout.

# Installing

pip install tamplar

# Console running

### Init

Go to empty directory and init your first project

tamplar init

After that, you get [FastAPI](https://fastapi.tiangolo.com/) service with healthcheck methods. FastAPI is ASGI framework instead of [Flask](https://flask.palletsprojects.com/).

If you want reinitialize, tamplar ask you about cleaning repo. If you works with JetBrains IDE, while initialization we ignore .idea files.

### Deps

We use default excellent library for logging. This is [loguru](https://github.com/Delgan/loguru). Loguru is a very useful wrapper over standart python [logger](https://docs.python.org/3.8/library/logging.html). After initilize you can install all dependencies:

tamplar deps

This command uses pip and requirements.

### Clean

Clean is command for cleaning your building files:

tamplar clean

# Test

Tamplar have a lot of good tests. But we have not any integration tests, because it is very difficult emulate python’s environment. Therefore we change integration tests to unit tests mixed integration tests (we creates and deletes files) while tests.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tamplar-0.2.2.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

tamplar-0.2.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file tamplar-0.2.2.0-py3-none-any.whl.

File metadata

  • Download URL: tamplar-0.2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for tamplar-0.2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92510425ea565b0b457e45443f49aa67e1090cad118e48c836df80fb1f6100fa
MD5 d4800cd655b26204c94a80c5a87b364d
BLAKE2b-256 8cd684181055af4d1fc23fbf3c7e8e735a51f412402ce0c9a4150fbc6a513baf

See more details on using hashes here.

File details

Details for the file tamplar-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: tamplar-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for tamplar-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6c10710e3addb74df316e540f371c05a4d1d6a7c5c9f46975e43fef9bc9093fb
MD5 9d168e7502d96bef2e352b0baf102887
BLAKE2b-256 f71014ad54953b38860f61633ca39e5e052bcf74c91275808f7498c08600d9f8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page