flit
sampleproject
Our great sponsors
flit | sampleproject | |
---|---|---|
6 | 18 | |
2,094 | 4,989 | |
0.9% | 1.3% | |
6.4 | 4.9 | |
about 1 month ago | about 1 month ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | MIT License |
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.
sampleproject
-
Releasing my Python Project
from setuptools import setup, find_packages from src.til_page_builder.version import __version__ as version with open("requirements.txt") as f: requirements = f.read().splitlines() setup( name="til_page_builder", version=version, packages=find_packages(), install_requires=requirements, entry_points={ "console_scripts": [ "til_page_builder=til_page_builder.til_builder_main:main", # Adjust 'module_name' and 'main' accordingly ], }, python_requires=">=3.8", classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], author="Amnish Singh Arora", author_email="[email protected]", description="A command-line tool for authoring 'Today I Learned' posts in Markdown, which can be converted to HTML for publishing on the web.", long_description=open("README.md").read(), long_description_content_type="text/markdown", url="https://github.com/pypa/sampleproject", project_urls={ "Homepage": "https://github.com/pypa/sampleproject", "Issues": "https://github.com/pypa/sampleproject/issues", }, )
-
Packaging tutorial: my package installs from test.pypi.org, but I can't import
[project.urls] "Homepage" = "https://github.com/pypa/sampleproject" "Bug Tracker" = "https://github.com/pypa/sampleproject/issues" ```
-
Discock and W4SP Stealer: Malicious pypi packages and horizontally-scrolled masspace imports
We first observed a package performing “starjacking” in the project https://github.com/pypa/sampleproject. We flagged the package for further investigation.
-
How to improve Python packaging, or why 14 tools are at least 12 too many
[2]: https://github.com/pypa/sampleproject/blob/main/pyproject.to...
-
pyproject.toml, setup.cfg, setup.py. What's the difference?
Example Python project uses all of them.
-
NPM like init command for pip
The generated project basically is pypa's sample project(https://github.com/pypa/sampleproject)
-
Building a package as per the PyPA Guidelines
PyPA recommends using a sample project for building reusable packages and is available at: https://github.com/pypa/sampleproject.
-
Reading suggestions on how to structure and name my files
This may help: https://github.com/pypa/sampleproject
- Programar em Python
- How to include non python resource files into a simple python package?
What are some alternatives?
Poetry - Python packaging and dependency management made easy
randfacts - Python module used to generate random facts
pip - The Python package installer
python-template - A simple template Python repository which describes a workflow and set of tools, to make group projects more manageable
Pipenv - Python Development Workflow for Humans.
whoami - Tiny Go server that prints os information and HTTP request to output
python-lib - Opinionated cookiecutter template for creating a new Python library
sigstore-python - A Sigstore client for Python
tomli - A lil' TOML parser
laravel-websockets-example - Quick example of a docker stack for laravel-websockets
hyper-inspector