konsti Profile
konsti

@konstinx

Followers
246
Following
2K
Media
35
Statuses
418

cat in your python packages • he/him

Joined July 2013
Don't wanna be here? Send us removal request.
@konstinx
konsti
9 months
you can solve sudokus in python packaging. not python code, python packaging. [project].name = "sudoku".version = "1.0.0".dependencies = [. "sudoku_3_1 == 2",. "sudoku_5_7 == 6",. "sudoku_0_7 == 5". ].
Tweet card summary image
github.com
Sudoku solving in python packaging. Contribute to konstin/sudoku-in-python-packaging development by creating an account on GitHub.
10
76
523
@konstinx
konsti
1 year
RT @astral_sh: Announcing the Astral OSS Fund. We're giving > $3,000 per Astral team member per year to open source projects, maintainers,….
Tweet card summary image
astral.sh
Astral is creating a fund to support open source projects and maintainers.
0
17
0
@konstinx
konsti
1 year
RT @charliermarsh: But our goal is to evolve uv into a "Cargo for Python": a comprehensive project and package manager that's fast, reliabl….
0
12
0
@konstinx
konsti
1 year
RT @astral_sh: Announcing uv: an extremely fast Python package installer and resolver, written in Rust. uv is designed as a drop-in replac….
Tweet card summary image
astral.sh
uv is an extremely fast Python package installer and resolver, designed as a drop-in alternative to pip and pip-tools.
0
31
0
@konstinx
konsti
2 years
i'll also be at #PyConUS if you're interested in chatting about maturin, pyo3, evolving packaging standards, python tooling in rust or just python packaging in general.
1
0
2
@konstinx
konsti
2 years
@charliermarsh
Charlie Marsh
2 years
I've started a company, Astral, to continue building high-performance developer tools for the Python ecosystem. We're going to keep building Ruff, and build more Ruff-like things. We've raised a seed round led by @Accel. I'm extremely excited :).
1
0
1
@konstinx
konsti
2 years
1
0
2
@konstinx
konsti
3 years
i've reimplemented PEP 440 (the python version standard) and wrote about the depths of PEP 440 and how to evolve it for the future
1
0
2
@konstinx
konsti
3 years
RT @althonos: Hi #bioinformatics! With the developers at #PyO3 (#Python to #Rust bindings), we are working on a paper manuscript to make it….
0
9
0
@konstinx
konsti
3 years
@indygreg incidentally, i've also written a wheel installer that's faster than pip's singlethreaded (e.g. 5.8s vs. 7.6s for plotly on my laptop) and can additionally be multithreaded, if somebody is interested in reusing that
0
0
1
@konstinx
konsti
3 years
@indygreg there's still a lot missing and many things are broken, e.g. non-linux is badly tested, only pypi is supported, startup is slow, only some requirements.txt syntax is supported, some mysterious failures in jupyter/colab, windows scripts are wonky, etc.
1
0
0
@konstinx
konsti
3 years
@indygreg as another proof of concept, it supports the flat src layout you probably know from other ecosystems
Tweet media one
1
0
0
@konstinx
konsti
3 years
@indygreg loads libpython, injects a custom meta path finder that knows the dependency resolution and then starts your program as you would from the cli. this guarantees that only exactly the dependencies you requested in the versions resolved are importable.
1
0
0
@konstinx
konsti
3 years
how does it work? internally, it looks for pyproject.toml or requirements.txt, if required calls a vendored poetry to resolve dependencies, installs each packages in a separate directory, downloads missing python binaries (thanks to @indygreg's great python-build-standalone),.
1
0
0
@konstinx
konsti
3 years
packages are installed once globally, so no more reinstalling torch for each project, no more venv/conda management, and it also means if you have all dependencies cached you can do a fresh clone of a project and your code will start immediately.
1
0
0
@konstinx
konsti
3 years
There's either a single standalone binary to download ( or a pip installable package (`pipx install monotrail`), depending on how you want to run it.
github.com
Install monotrail 0.2.0 Install prebuilt binaries via shell script curl --proto '=https' --tlsv1.2 -LsSf https://github.com/konstin/poc-monotrail/releases/download/v0.2.0/monotrail-installe...
1
0
0
@konstinx
konsti
3 years
i've also made an interactive mode for jupyter notebooks (`monotrail.interactive(numpy="^1.21", pandas="^1")`), a pipx clone (`monotrail ppipx --extras jupyter black .`) and a tox clone (`monotrail run -p 3.8 -p 3.9 -p 3.10 command pytest`)
Tweet media one
Tweet media two
1
0
0
@konstinx
konsti
3 years
you can specify your dependencies through pyproject.toml/poetry.lock or requirements.txt, monotrail will resolve them, install missing packages in a global cache and hook the correct versions up your project, including installing python itself.
1
0
1
@konstinx
konsti
3 years
i've made a proof of concept for using python packages without virtualenv, or really any explicit installing at all: no virtualenv/pip/pyenv/conda, just ´monotrail run python` and it will set everything up.
Tweet card summary image
github.com
Proof Of Concept for python package management without virtualenvs - konstin/poc-monotrail
1
4
15
@konstinx
konsti
3 years
Thanks to Michael Heinzinger, @thesteinegger, Burkhard Rost and all of @rostlab for making this project possible.
1
0
3