Skip to content

Commit 48a5cc3

Browse files
authored
Merge pull request #1 from deepnimma/repo-setup
build(repo): Set up repo, workers, bindings, d1 db, and r2 bucket.
2 parents 7ebad3c + 153c78c commit 48a5cc3

25 files changed

+4061
-0
lines changed

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (c) 2025 Deepesh Nimma
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

downloader/.gitignore

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Logs
2+
3+
logs
4+
_.log
5+
npm-debug.log_
6+
yarn-debug.log*
7+
yarn-error.log*
8+
lerna-debug.log*
9+
.pnpm-debug.log*
10+
11+
# Diagnostic reports (https://nodejs.org/api/report.html)
12+
13+
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
14+
15+
# Runtime data
16+
17+
pids
18+
_.pid
19+
_.seed
20+
\*.pid.lock
21+
22+
# Dependency directories
23+
24+
node_modules/
25+
jspm_packages/
26+
27+
# TypeScript cache
28+
29+
\*.tsbuildinfo
30+
31+
# Optional npm cache directory
32+
33+
.npm
34+
35+
# Optional eslint cache
36+
37+
.eslintcache
38+
39+
# Optional stylelint cache
40+
41+
.stylelintcache
42+
43+
# Optional REPL history
44+
45+
.node_repl_history
46+
47+
# Output of 'npm pack'
48+
49+
\*.tgz
50+
51+
# public
52+
53+
# Stores VSCode versions used for testing VSCode extensions
54+
55+
.vscode-test
56+
57+
# wrangler project
58+
59+
.dev.vars*
60+
!.dev.vars.example
61+
.env*
62+
!.env.example
63+
.wrangler/
64+
65+
# python-specific
66+
python_modules/
67+
.venv/
68+
.venv-workers/

downloader/.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

downloader/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Usage
2+
3+
You can run the Worker defined by your new project by executing `wrangler dev` in this
4+
directory. This will start up an HTTP server and will allow you to iterate on your
5+
Worker without having to restart `wrangler`.
6+
7+
### Types and autocomplete
8+
9+
This project also includes a pyproject.toml with some requirements which
10+
set up autocomplete and type hints for this Python Workers project.
11+
12+
To get these installed you'll need `uv`, which you can install by following
13+
https://docs.astral.sh/uv/getting-started/installation/.
14+
15+
Once `uv` is installed, you can run the following:
16+
17+
```
18+
uv venv
19+
uv sync
20+
```
21+
22+
Then point your editor's Python plugin at the `.venv` directory. You should then have working
23+
autocomplete and type information in your editor.

0 commit comments

Comments
 (0)