Skip to main content

projen-practical-constructs

Constructs and utilities for managing projects with Projen enforcing solid build, test and linting structures.

This repo have additional Constructs not present in official projen repo such as RUFF, Makefile etc.

Currently there is support for Python projects, but in the future more will be added.

Check in /examples folder the target structure that these project types will produce.

For Python project types

Project type name: python_basic

The basic stack supported by this project is:

  • Makefile: scripts management
  • pip: virtual environments management
  • Mypy: code Type check
  • RUFF: code formatting and linting
  • pytest + coverage: test management
  • pip-audit: dependencies vulnerability checks
  • pip-tools: dependencies lock file generation (contrainsts.txt)
  • vs-code plugins: code editor feedback

This project was used as reference for the target project structure created by this projen project type.

Usage

npx projen new --from projen_practical_constructs python_basic

The constructs can be used separately to adapt to your specific needs, but you can use the PythonProject construct with a default configuration of the entire stack to easily have a full project structure with build, test and linting capabilities.

Development

Tests

  • We use a lot of snapshots on our tests, which in general is not a good practice. But in our case we decided to use it because there are lots of files and the snapshots will check if the file contents were changed.
  • Be careful checking manually the errors on snapshots before updating them to be sure that it's not a breaking change to the users of the library

JSII

References

Metadata

Release files for projen-practical-constructs 0.4.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for projen-practical-constructs 0.4.5
File Size Uploaded
projen_practical_constructs-0.4.5.tar.gz 3.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for projen-practical-constructs 0.4.5
File Interpreter ABI Platform
projen_practical_constructs-0.4.5-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 MB

Release files / projen_practical_constructs-0.4.5.tar.gz

Download URL projen_practical_constructs-0.4.5.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
8aba5451bf3d4214eb1354498298cc019e1ce51bd13bcfa6a79b946f9f246085
BLAKE2b-256 checksum
How to use checksums
67d05dbc821e63ffb8633655f882b115eaf7d28473707aca8c3cde56bdf8b344
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / projen_practical_constructs-0.4.5-py3-none-any.whl

Download URL projen_practical_constructs-0.4.5-py3-none-any.whl
Size 3.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3bdc58234d46fc289b06d172c1a394c675c0f808cd71a423a51b5f9c0434f4a1
BLAKE2b-256 checksum
How to use checksums
78f8225a3e23d3e032387a79fb9844e06f3e54f53d54fbc1d322f1f63e60e0ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.4.5 This release

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.3

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page