self-contained-runnable-python-package-template
cf2tf
Our great sponsors
self-contained-runnable-python-package-template | cf2tf | |
---|---|---|
3 | 5 | |
18 | 410 | |
- | 9.5% | |
0.0 | 8.0 | |
over 1 year ago | 14 days ago | |
Python | Python | |
GNU General Public License v3.0 only | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
self-contained-runnable-python-package-template
-
Underappreciated Challenges with Python Packaging
The approach I prefer is to not mess with setuptools etc at all in the first place, and simply make a nice executable package.
e.g. https://github.com/tpapastylianou/self-contained-runnable-py...
-
How to create a Python package in 2022
The title should be: How to create a "Python DISTRIBUTION package".
The term "python package" means something entirely different (or at the very least is ambiguous in a pypi/distribution context).
To add to the confusion, creating a totally normal, runnable python package in a manner that makes it completely self-contained such that it can be "distributed" in a standalone manner, while still being a totally normal boring python package, is also totally possible (if not preferred, in my view).
Shameless plug: https://github.com/tpapastylianou/self-contained-runnable-py...
-
Show HN: Hatch 1.0.0 – Modern, extensible Python project management
Shameless plug: I use my own template, which organises things as runnable projects.
https://github.com/tpapastylianou/self-contained-runnable-py...
It serves my purposes very well (which is creating projects that represent standalone experiments).
Sharing in case someone else here finds it useful.
More recently I've modified this a bit to also generate nice html reports straight from the __main__.py file, independently of the underlying python code, and use this as lab books (where each lab book contains a single analysis and its report). I'll upload this template separately when I find the time.
cf2tf
-
How do I convert my CloudFormation template into a Terraform file?
Not really just because there are basic limitations with certain resources mappings. You might be able to knock out reasonable chunks of busy work with something like this https://github.com/DontShaveTheYak/cf2tf
-
How to create a Python package in 2022
You can take this a step further and completely automate the release of your package. That means the tagging the publishing and the GitHub release notes.
I don't have a blog post but you can see the process on my personal project https://github.com/DontShaveTheYak/cf2tf
Check out the merged PR's and the GitHub actions.
I even do alpha releases to test pypi.
- cf2tf: A tool to automatically convert Cloudformation templates to Terraform
-
Gitflow users – What's your process for merging between develop/release/main?
I have automated this completely in several of my projects but I dont use `release` branches. Here is an example https://github.com/DontShaveTheYak/cf2tf
- Show HN: Convert Cloudformation Templates to Terraform
What are some alternatives?
hatch - Modern, extensible Python project management
cloud-radar - Create Functional and Unit tests for Cloudformation Stacks.
pip-audit - Audits Python environments, requirements files and dependency trees for known security vulnerabilities, and can automatically fix them
tox-poetry-installer - A plugin for Tox that lets you install test environment dependencies from the Poetry lockfile
awesome-devops - A curated list of awesome DevOps platforms, tools, practices and resources
Nuitka - Nuitka is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.
Poetry - Python packaging and dependency management made easy