flit
coveragepy
flit | coveragepy | |
---|---|---|
6 | 7 | |
2,098 | 2,831 | |
0.6% | - | |
6.6 | 9.6 | |
4 days ago | 7 days ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
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.
flit
-
Show HN: Code Indexer Loop
Queries on https://github.com/pypa/flit/tree/main/flit_core/flit_core (omitted tests/)
(Pdb) print(indexer.query("def normalize_dist_name(name: str, version: str) -> str:"))
-
Underappreciated Challenges with Python Packaging
If it's pure Python, the only packaging file you need is `pyproject.toml`. You can fill that file with packaging metadata per PEP 518 and PEP 621, including using modern build tooling like flit[1] for the build backend and build[2] for the frontend.
With that, you entire package build (for all distribution types) should be reducible to `python -m build`. Here's an example of a full project doing everything with just `pyproject.toml`[3] (FD: my project).
[1]: https://github.com/pypa/flit
[2]: https://github.com/pypa/build
[3]: https://github.com/pypa/pip-audit
-
Easy Packing and Publishing to PyPi with Flit, pytest, and Circleci
I published a very simple project flit_pytest_circleci_template that uses: * [flit](https://github.com/pypa/flit) to build a package. * pytest to test it * circleci to run the above and publish the package to pypi whenever a source file is committed. This is the hard part IMO as I do not know circleci well (and didn't know it at all when I started this project).
- Python un-updatable, suggestions?
-
Comparison of Python TOML parser libraries
flit
-
How to make a Python package in 2021
I hadn't heard of flit, it does seem like it's not brand new on the scene, however it is primarily a single contributor:
https://github.com/takluyver/flit/graphs/contributors
With a title like this, I'd be expecting to see an article describing the latest tools and recommendations from the PyPA.
coveragepy
-
An Introduction to Testing with Django for Python
Coverage.py is the go-to tool for measuring code coverage of Python programs. Once installed, you can use it with either unittest or pytest.
-
The Uncreative Software Engineer's Compendium to Testing
Code Coverage Analysis assess the code portions tested by the current test suites without altering the code.
-
Slipcover: Near Zero-Overhead Python Code Coverage
The PLASMA lab @ UMass Amherst (home of the Scalene profiler) has released a new version of Slipcover, a super fast code coverage tool for Python. It is by far the fastest code coverage tool: in our tests, its average slowdown is just 5% (compare to the widely used coverage.py, average slowdown 218%!). The latest release performs both line and branch coverage with virtually no overhead. Use it to dramatically speed up your tests and continuous integration!
-
Unit Tests - what’s the point?
Tests ensure the tested behavior is maintained. It's up to the developers to write tests with sufficient coverage. Determining which lines of code on your project are covered by tests is easily quantifiable using tooling. E.g. https://coverage.readthedocs.io/
-
How to make Django package smaller for Serverless deployment
Taking the idea further, if you build robust tests for your API, you could use a dynamic code analyzer like coverage or figleaf to identify and delete unused functions.
-
Comparison of Python TOML parser libraries
coverage
-
New Ways to Be Told That Your Python Code Is Bad
FWIW, ternary expressions aren't properly detected by coverage: https://github.com/nedbat/coveragepy/issues/509
What are some alternatives?
Poetry - Python packaging and dependency management made easy
global-chem - A Knowledge Graph of Common Chemical Names to their Molecular Definition
pip - The Python package installer
slipcover - Near Zero-Overhead Python Code Coverage
Pipenv - Python Development Workflow for Humans.
Zappa - Serverless Python
python-lib - Opinionated cookiecutter template for creating a new Python library
pytomlpp - A python wrapper for tomlplusplus
tomli - A lil' TOML parser
toml - Python lib for TOML
laravel-websockets-example - Quick example of a docker stack for laravel-websockets