Skip to content

ozeta/python-modules-dts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python modules

this repo is a POC of a python project composed by multiple modules, with shared code (the module_common dir).

Poetry was used as a dependency management tool.

Tests

use

$ pytests

to easily run all tests.

Run

module_a contains the main entrypoint of the app

dev mode

 uvicorn module_a.app.main:app --reload

Poetry chatsheet

create new python module

this will record the module into pyproject.toml

poetry new microservice-a

install and activate venv

you can use uv to create a new venv

# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv

you can then enter the venv using poetry

poetry shell

build the project

poetry build

The build command builds the source and wheels archives.

add dependencies to pyproject.toml

poetry add requests pendulum

install dependencies from pyproject.toml

poetry install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages