Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv for quadfeather #154

Open
wants to merge 1 commit into
base: 11-03-cleaner_deeptable_instantiation_pattern
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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