Skip to content

Commit

Permalink
uv for quadfeather
Browse files Browse the repository at this point in the history
  • Loading branch information
bmschmidt committed Nov 11, 2024
1 parent 37721e5 commit de57740
Show file tree
Hide file tree
Showing 5 changed files with 170 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ city_tiles
test_pages
cities.html
assets
tmp.csv
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ See the [arxiv example above](https://observablehq.com/@bmschmidt/arxiv) to see
First, install the companion tiling library, which is written in python,
and generate a million points of test data in tiles of 50000 apiece.

Because python finally has a decent package management system that's learned from npm, you should use it!

```sh
python3 -V # requires Python 3.9.x or 3.10.x
python3 -m pip install git+https://github.com/bmschmidt/quadfeather
quadfeather-test-data 1_000_000
quadfeather --files tmp.csv --tile_size 50_000 --destination tiles
uv init
uv add git+https://github.com/bmschmidt/quadfeather
uv run quadfeather-test-data 1_000_000
uv run quadfeather --files tmp.csv --tile_size 50_000 --destination tiles
```

Then setup this library to run. It will start a local dev server.
Expand Down
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[project]
name = "deepscatter"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"quadfeather",
]

[tool.uv.sources]
quadfeather = { git = "https://github.com/bmschmidt/quadfeather" }
Loading

0 comments on commit de57740

Please sign in to comment.