vsketch
doit
vsketch | doit | |
---|---|---|
11 | 20 | |
477 | 1,783 | |
- | 0.6% | |
7.3 | 0.0 | |
4 days ago | 6 months ago | |
Python | Python | |
GNU General Public License v3.0 or later | 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.
vsketch
-
I used Python to control a custom stop-motion animation drawing machine
The frames' vector data is generated using a sketch made with my vsketch framework (it involves loading GeoJSON data, processing it with Shapely, and projecting it in 3D with NumPy).
-
Self Portrait using Pix2Pix and vPype
There isn't a GUI, but that's by design. The CLI format facilitates the integration in automated workflows. The show command does provide a viewer for visualisation at any point in the pipeline. Also, I have another framework (based on vpype) named vsketch which is a plotter-centric python clone of Processing with a viewer and live refresh.
- Hong Kong Victoria Harbour
-
Chrysalide
Matplotlib for plotter stuff seems tedious indeed ! Definitly check out vsketch, it has an API similar to processing, but focused on generating plotter-ready SVG.
-
Problem with installing Pretty Maps
pip install git+https://github.com/abey79/vsketch#egg=vsketchDefaulting to user installation because normal site-packages is not writeableCollecting vsketch Cloning https://github.com/abey79/vsketch to /tmp/pip-install-z2f8qeqh/vsketch_476eb7b32e4a43e9ae29175d979f1267 Running command git clone --filter=blob:none -q https://github.com/abey79/vsketch /tmp/pip-install-z2f8qeqh/vsketch_476eb7b32e4a43e9ae29175d979f1267 Resolved https://github.com/abey79/vsketch to commit 1f28fa8fa491a574d04cbe80ae82f61e3b3d17fb Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... doneCollecting vpype[all]@ git+https://github.com/abey79/vpype@e8aab428b6790de03e36cd51aa30ca0612a38d87 Cloning https://github.com/abey79/vpype (to revision e8aab428b6790de03e36cd51aa30ca0612a38d87) to /tmp/pip-install-z2f8qeqh/vpype_529e4b4779de41eb909706b17c4bafe5 Running command git clone --filter=blob:none -q https://github.com/abey79/vpype /tmp/pip-install-z2f8qeqh/vpype_529e4b4779de41eb909706b17c4bafe5 Running command git rev-parse -q --verify 'sha^e8aab428b6790de03e36cd51aa30ca0612a38d87' Running command git fetch -q https://github.com/abey79/vpype e8aab428b6790de03e36cd51aa30ca0612a38d87 Resolved https://github.com/abey79/vpype to commit e8aab428b6790de03e36cd51aa30ca0612a38d87 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... doneRequirement already satisfied: Shapely[vectorized]<2.0.0,>=1.7.1 in ./.local/lib/python3.10/site-packages (from vsketch) (1.8.0)Collecting bezier>=2021.2.12 Using cached bezier-2021.2.12.tar.gz (313 kB) Preparing metadata (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z2f8qeqh/bezier_a73eda2d953941fea05d9db7413b7234/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z2f8qeqh/bezier_a73eda2d953941fea05d9db7413b7234/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-t3gbjrvl cwd: /tmp/pip-install-z2f8qeqh/bezier_a73eda2d953941fea05d9db7413b7234/ Complete output (1 lines): The BEZIER_INSTALL_PREFIX environment variable must be set. ----------------------------------------WARNING: Discarding https://files.pythonhosted.org/packages/cb/e8/0073ac3f92cbe8ced10e5e5822594a8f63b9a3dc91258c681b7ee96b80b0/bezier-2021.2.12.tar.gz#sha256=d0f752aeb420057ab761f962259c7ca00d925750e324c9bb729f2f10ad39529a (from https://pypi.org/simple/bezier/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.ERROR: Could not find a version that satisfies the requirement bezier>=2021.2.12 (from vsketch) (from versions: 0.0.1, 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 2020.1.14, 2020.2.3, 2020.5.19, 2021.2.12)ERROR: No matching distribution found for bezier>=2021.2.12
- Cats
- WARNING: pip is being invoked by an old script wrapper.
-
prettymaps: A small set of Python functions to draw pretty maps from OpenStreetMap data
FROM jupyter/scipy-notebook:33add21fab64 COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/ RUN python -m pip install --upgrade pip RUN pip install --quiet --no-cache-dir git+https://github.com/abey79/vsketch#egg=vsketch RUN pip install --quiet --no-cache-dir git+https://github.com/marceloprates/prettymaps.git RUN fix-permissions "${CONDA_DIR}" && fix-permissions "/home/${NB_USER}" ENTRYPOINT ["jupyter", "lab", "--ip=0.0.0.0", "--allow-root"]
-
Prettymaps: Small Python library to draw customized maps from OpenStreetMap data
pip install git+https://github.com/abey79/vsketch#egg=vsketch
-
Flowlines No 4
I started by using Processing, but have switched to [vsketch](https://github.com/abey79/vsketch), a Python-based framework which has a similar API to Processing. I like it because it has built-in UI for changing parameters, which I find hugely useful. Plus, it integrates with vpype, which is designed for image processing for plotters.
doit
-
How do you deal with CI, project config, etc. falling out of sync across repos?
I like mage for Go and doit for Python.
-
What’s with DevOps engineers using `make` of all things?
Some competitors - Rake (ruby) - Bake - Earthly - SCons - doit
-
Show HN: Jeeves – A Pythonic Alternative to GNU Make
An alternative to Scons could be Doit (<https://pydoit.org/>), which if I remember correctly was built as a faster alternative to Scons. See also reasons of some users to prefer the later to other mentioned here: <https://pydoit.org/stories.html>.
- A Python powered task management and automation tool
- Makefile Tricks for Python Projects
-
Write Posix Shell
If you code in Python, your probably should use the language as much as possible and avoid calling shell commands.
E.G:
- manipulate the file system with pathlib
- do hashes with hashlib
- zip with zipfile
- set error code with sys.exit
- use os.environ for env vars
- print to stderr with print(..., file=...)
- sometimes you'll need to install lib. Like, if you want to manipulate a git repo, instead of calling the git command, use gitpython (https://gitpython.readthedocs.io/en/stable/)
But if you don't feel like installing a too many libs, or just really want to call commands because you know them well, then the "sh" lib is going to make things smoother:
https://pypi.org/project/sh/
Also, enjoy the fact Python comes with argparse to parse script arguments (or if you feel like installing stuff, use typer). It sucks to do it in bash .
If what you need is more build oriented, like something to replace "make", then I would instead recommend "doit":
https://pydoit.org/
It's the only task runner that I haven't run away from yet.
Remember to always to everything in a venv. But you can have a giant venv for all the scripts, and just she-bang the venv python executable so that it's transparent. Things don't have to be difficult.
-
Alternatives to Makefile for Python
I've been using Doit for a project which involves gathering together documents made up of multiple Markdown files and converting to multiple formats. It's really cool but has some irritations. It didn't end up being much simpler than Make for me. I'm interested in trying some of the alternatives people have posted.
- Just: A Command Runner
-
I used Python to control a custom stop-motion animation drawing machine
The code for all of this is available here, and described in detail in my article. I'm particularly fan of doit for this type of project, and highly encourage everyone to check it out!
-
Monorepo Build Tools
Instead, I use pydoit (which is basically a Python version of make). It's simple, flexible, and quite extensible. So, here's what I do with it:
What are some alternatives?
vpype - The Swiss-Army-knife command-line tool for plotter vector graphics.
Invoke - Pythonic task management & command execution.
prettymaps - A small set of Python functions to draw pretty maps from OpenStreetMap data. Based on osmnx, matplotlib and shapely libraries.
Prefect - The easiest way to build, run, and monitor data pipelines at scale.
vpype-pixelart - Pixel art plotting in vpype
Joblib - Computing with Python functions.
pip - The Python package installer
schedule - Python job scheduling for humans.
plotly - The interactive graphing library for Python :sparkles: This project now includes Plotly Express!
Task - A task runner / simpler Make alternative written in Go
abstreet - Transportation planning and traffic simulation software for creating cities friendlier to walking, biking, and public transit
TaskFlow - A library to complete workflows/tasks in HA manner. Mirror of code maintained at opendev.org.