whatdidyoudo 0.1.0__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of whatdidyoudo might be problematic. Click here for more details.
- {whatdidyoudo-0.1.0 → whatdidyoudo-0.1.3}/PKG-INFO +39 -27
- whatdidyoudo-0.1.3/README.md +70 -0
- {whatdidyoudo-0.1.0 → whatdidyoudo-0.1.3}/pyproject.toml +12 -1
- whatdidyoudo-0.1.3/whatdidyoudo/__init__.py +0 -0
- {whatdidyoudo-0.1.0 → whatdidyoudo-0.1.3}/whatdidyoudo/app.py +9 -0
- whatdidyoudo-0.1.0/.github/copilot-instructions.md +0 -63
- whatdidyoudo-0.1.0/README.md +0 -60
- whatdidyoudo-0.1.0/run_test.py +0 -8
- {whatdidyoudo-0.1.0 → whatdidyoudo-0.1.3}/.gitignore +0 -0
- {whatdidyoudo-0.1.0 → whatdidyoudo-0.1.3}/whatdidyoudo/static/style.css +0 -0
- {whatdidyoudo-0.1.0 → whatdidyoudo-0.1.3}/whatdidyoudo/templates/form.html +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: whatdidyoudo
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: A minimal Flask app that shows the amount of OpenStreetMap changes made by a user on a day.
|
|
5
|
+
Project-URL: Homepage, https://github.com/rompe/whatdidyoudo
|
|
6
|
+
Project-URL: Issues, https://github.com/rompe/whatdidyoudo/issues
|
|
5
7
|
Author-email: Ulf Rompe <whatdidyoudo.rompe.org@rompe.org>
|
|
6
8
|
License: MIT
|
|
7
9
|
Requires-Python: >=3.11
|
|
@@ -21,12 +23,16 @@ A minimal Flask app that shows the amount of OpenStreetMap changes made by a use
|
|
|
21
23
|
|
|
22
24
|
## Background
|
|
23
25
|
|
|
24
|
-
I often ask myself after contributing many changes to OpenStreetMap,
|
|
25
|
-
while extensively using StreetComplete,
|
|
26
|
-
|
|
26
|
+
I often ask myself after contributing many changes to [OpenStreetMap](https://www.openstreetmap.org/),
|
|
27
|
+
either by walking around while extensively using [StreetComplete](https://streetcomplete.app/),
|
|
28
|
+
[MapComplete](https://mapcomplete.org/) or [Vespucci](https://vespucci.io/), or by doing some tasks
|
|
29
|
+
in [iD](https://www.openstreetmap.org/edit) or [JOSM](https://josm.openstreetmap.de/):
|
|
30
|
+
|
|
31
|
+
***How many changes did I contribute to the map today?***
|
|
27
32
|
|
|
28
33
|
I'm not the only one. I heard questions like this quite a few times:
|
|
29
|
-
|
|
34
|
+
|
|
35
|
+
***Where can I see how much I did on yesterday's mapwalk?***
|
|
30
36
|
|
|
31
37
|
Because I think that simple questions deserve simple answers, I made this tool to give exactly
|
|
32
38
|
this information and nothing else.
|
|
@@ -39,38 +45,44 @@ You don't need to self-host it, it is available for anyone at
|
|
|
39
45
|
Fun fact: of course you don't really need *uv* for this. I'm just using this project to
|
|
40
46
|
get used to it as I think it has a lot of potential.
|
|
41
47
|
|
|
42
|
-
|
|
48
|
+
### Install [uv](https://github.com/astral-sh/uv) if needed
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
pip install uv
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Install dependencies using *uv*
|
|
43
55
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
56
|
+
```sh
|
|
57
|
+
uv pip install -r pyproject.toml
|
|
58
|
+
```
|
|
47
59
|
|
|
48
|
-
|
|
60
|
+
If you want to develop:
|
|
49
61
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
62
|
+
```sh
|
|
63
|
+
uv pip install -r pyproject.toml --extra dev
|
|
64
|
+
```
|
|
53
65
|
|
|
54
|
-
|
|
66
|
+
### Run tests
|
|
55
67
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
68
|
+
```sh
|
|
69
|
+
pytest
|
|
70
|
+
```
|
|
59
71
|
|
|
60
|
-
|
|
72
|
+
### Run the app in test mode
|
|
61
73
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
74
|
+
```sh
|
|
75
|
+
python whatdidyoudo/app.py
|
|
76
|
+
```
|
|
65
77
|
|
|
66
|
-
|
|
78
|
+
Visit [http://127.0.0.1:5000/](http://127.0.0.1:5000/) in your browser to see "hello world".
|
|
67
79
|
|
|
68
|
-
|
|
80
|
+
### Build a package and upload it to Pypi
|
|
69
81
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
82
|
+
```sh
|
|
83
|
+
uvx hatchling build
|
|
84
|
+
uvx twine upload dist/*
|
|
85
|
+
```
|
|
74
86
|
|
|
75
87
|
## License
|
|
76
88
|
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# whatdidyoudo
|
|
2
|
+
|
|
3
|
+
A minimal Flask app that shows the amount of OpenStreetMap changes made by a user on a day.
|
|
4
|
+
|
|
5
|
+
## Background
|
|
6
|
+
|
|
7
|
+
I often ask myself after contributing many changes to [OpenStreetMap](https://www.openstreetmap.org/),
|
|
8
|
+
either by walking around while extensively using [StreetComplete](https://streetcomplete.app/),
|
|
9
|
+
[MapComplete](https://mapcomplete.org/) or [Vespucci](https://vespucci.io/), or by doing some tasks
|
|
10
|
+
in [iD](https://www.openstreetmap.org/edit) or [JOSM](https://josm.openstreetmap.de/):
|
|
11
|
+
|
|
12
|
+
***How many changes did I contribute to the map today?***
|
|
13
|
+
|
|
14
|
+
I'm not the only one. I heard questions like this quite a few times:
|
|
15
|
+
|
|
16
|
+
***Where can I see how much I did on yesterday's mapwalk?***
|
|
17
|
+
|
|
18
|
+
Because I think that simple questions deserve simple answers, I made this tool to give exactly
|
|
19
|
+
this information and nothing else.
|
|
20
|
+
|
|
21
|
+
You don't need to self-host it, it is available for anyone at
|
|
22
|
+
[whatdidyoudo.rompe.org](https://whatdidyoudo.rompe.org).
|
|
23
|
+
|
|
24
|
+
## Setup
|
|
25
|
+
|
|
26
|
+
Fun fact: of course you don't really need *uv* for this. I'm just using this project to
|
|
27
|
+
get used to it as I think it has a lot of potential.
|
|
28
|
+
|
|
29
|
+
### Install [uv](https://github.com/astral-sh/uv) if needed
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
pip install uv
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Install dependencies using *uv*
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
uv pip install -r pyproject.toml
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
If you want to develop:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
uv pip install -r pyproject.toml --extra dev
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Run tests
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
pytest
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Run the app in test mode
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
python whatdidyoudo/app.py
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Visit [http://127.0.0.1:5000/](http://127.0.0.1:5000/) in your browser to see "hello world".
|
|
60
|
+
|
|
61
|
+
### Build a package and upload it to Pypi
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
uvx hatchling build
|
|
65
|
+
uvx twine upload dist/*
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## License
|
|
69
|
+
|
|
70
|
+
This project is licensed under the MIT License. See the `pyproject.toml` for details.
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
requires = ["hatchling"]
|
|
3
3
|
build-backend = "hatchling.build"
|
|
4
4
|
|
|
5
|
+
[tool.hatch.build]
|
|
6
|
+
packages = ["whatdidyoudo"]
|
|
7
|
+
|
|
5
8
|
[project]
|
|
6
9
|
name = "whatdidyoudo"
|
|
7
|
-
version = "0.1.
|
|
10
|
+
version = "0.1.3"
|
|
8
11
|
description = "A minimal Flask app that shows the amount of OpenStreetMap changes made by a user on a day."
|
|
9
12
|
authors = [
|
|
10
13
|
{ name = "Ulf Rompe", email = "whatdidyoudo.rompe.org@rompe.org" }
|
|
@@ -26,6 +29,14 @@ dev = [
|
|
|
26
29
|
"twine>=6.2.0",
|
|
27
30
|
]
|
|
28
31
|
|
|
32
|
+
[project.urls]
|
|
33
|
+
Homepage = "https://github.com/rompe/whatdidyoudo"
|
|
34
|
+
Issues = "https://github.com/rompe/whatdidyoudo/issues"
|
|
35
|
+
|
|
36
|
+
[project.scripts]
|
|
37
|
+
whatdidyoudo = "whatdidyoudo:main"
|
|
38
|
+
|
|
39
|
+
|
|
29
40
|
[tool.uv]
|
|
30
41
|
# uv-specific settings go here
|
|
31
42
|
|
|
File without changes
|
|
@@ -82,3 +82,12 @@ def whatdidyoudo(user: str | None = None, date: str | None = None) -> str:
|
|
|
82
82
|
|
|
83
83
|
return render_template('form.html', user=user, date=date, changes=changes,
|
|
84
84
|
changesets=changesets, error=error)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def main():
|
|
88
|
+
"""Run in debug mode."""
|
|
89
|
+
app.run(debug=True)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
if __name__ == "__main__":
|
|
93
|
+
main()
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<!-- Use this file to provide workspace-specific custom instructions to Copilot. For more details, visit https://code.visualstudio.com/docs/copilot/copilot-customization#_use-a-githubcopilotinstructionsmd-file -->
|
|
2
|
-
- [x] Verify that the copilot-instructions.md file in the .github directory is created.
|
|
3
|
-
|
|
4
|
-
- [ ] Clarify Project Requirements
|
|
5
|
-
- [ ] Scaffold the Project
|
|
6
|
-
- [ ] Customize the Project
|
|
7
|
-
- [ ] Install Required Extensions
|
|
8
|
-
- [ ] Compile the Project
|
|
9
|
-
- [ ] Create and Run Task
|
|
10
|
-
- [ ] Launch the Project
|
|
11
|
-
- [ ] Ensure Documentation is Complete
|
|
12
|
-
|
|
13
|
-
<!--
|
|
14
|
-
## Execution Guidelines
|
|
15
|
-
PROGRESS TRACKING:
|
|
16
|
-
- If any tools are available to manage the above todo list, use it to track progress through this checklist.
|
|
17
|
-
- After completing each step, mark it complete and add a summary.
|
|
18
|
-
- Read current todo list status before starting each new step.
|
|
19
|
-
|
|
20
|
-
COMMUNICATION RULES:
|
|
21
|
-
- Avoid verbose explanations or printing full command outputs.
|
|
22
|
-
- If a step is skipped, state that briefly (e.g. "No extensions needed").
|
|
23
|
-
- Do not explain project structure unless asked.
|
|
24
|
-
- Keep explanations concise and focused.
|
|
25
|
-
|
|
26
|
-
DEVELOPMENT RULES:
|
|
27
|
-
- Use '.' as the working directory unless user specifies otherwise.
|
|
28
|
-
- Avoid adding media or external links unless explicitly requested.
|
|
29
|
-
- Use placeholders only with a note that they should be replaced.
|
|
30
|
-
- Use VS Code API tool only for VS Code extension projects.
|
|
31
|
-
- Once the project is created, it is already opened in Visual Studio Code—do not suggest commands to open this project in Visual Studio again.
|
|
32
|
-
- If the project setup information has additional rules, follow them strictly.
|
|
33
|
-
|
|
34
|
-
FOLDER CREATION RULES:
|
|
35
|
-
- Always use the current directory as the project root.
|
|
36
|
-
- If you are running any terminal commands, use the '.' argument to ensure that the current working directory is used ALWAYS.
|
|
37
|
-
- Do not create a new folder unless the user explicitly requests it besides a .vscode folder for a tasks.json file.
|
|
38
|
-
- If any of the scaffolding commands mention that the folder name is not correct, let the user know to create a new folder with the correct name and then reopen it again in vscode.
|
|
39
|
-
|
|
40
|
-
EXTENSION INSTALLATION RULES:
|
|
41
|
-
- Only install extension specified by the get_project_setup_info tool. DO NOT INSTALL any other extensions.
|
|
42
|
-
|
|
43
|
-
PROJECT CONTENT RULES:
|
|
44
|
-
- If the user has not specified project details, assume they want a "Hello World" project as a starting point.
|
|
45
|
-
- Avoid adding links of any type (URLs, files, folders, etc.) or integrations that are not explicitly required.
|
|
46
|
-
- Avoid generating images, videos, or any other media files unless explicitly requested.
|
|
47
|
-
- If you need to use any media assets as placeholders, let the user know that these are placeholders and should be replaced with the actual assets later.
|
|
48
|
-
- Ensure all generated components serve a clear purpose within the user's requested workflow.
|
|
49
|
-
- If a feature is assumed but not confirmed, prompt the user for clarification before including it.
|
|
50
|
-
- If you are working on a VS Code extension, use the VS Code API tool with a query to find relevant VS Code API references and samples related to that query.
|
|
51
|
-
|
|
52
|
-
TASK COMPLETION RULES:
|
|
53
|
-
- Your task is complete when:
|
|
54
|
-
- Project is successfully scaffolded and compiled without errors
|
|
55
|
-
- copilot-instructions.md file in the .github directory exists in the project
|
|
56
|
-
- README.md file exists and is up to date
|
|
57
|
-
- User is provided with clear instructions to debug/launch the project
|
|
58
|
-
|
|
59
|
-
Before starting a new task in the above plan, update progress in the plan.
|
|
60
|
-
-->
|
|
61
|
-
- Work through each checklist item systematically.
|
|
62
|
-
- Keep communication concise and focused.
|
|
63
|
-
- Follow development best practices.
|
whatdidyoudo-0.1.0/README.md
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# whatdidyoudo
|
|
2
|
-
|
|
3
|
-
A minimal Flask app that shows the amount of OpenStreetMap changes made by a user on a day.
|
|
4
|
-
|
|
5
|
-
## Background
|
|
6
|
-
|
|
7
|
-
I often ask myself after contributing many changes to OpenStreetMap, either by walking around
|
|
8
|
-
while extensively using StreetComplete, MapComplete or Vespucci, or by doing some tasks in iD or
|
|
9
|
-
jOSM: **How many changes did I contribute to the map today?**
|
|
10
|
-
|
|
11
|
-
I'm not the only one. I heard questions like this quite a few times:
|
|
12
|
-
**Where can I see how much I did on yesterday's mapwalk?**
|
|
13
|
-
|
|
14
|
-
Because I think that simple questions deserve simple answers, I made this tool to give exactly
|
|
15
|
-
this information and nothing else.
|
|
16
|
-
|
|
17
|
-
You don't need to self-host it, it is available for anyone at
|
|
18
|
-
[whatdidyoudo.rompe.org](https://whatdidyoudo.rompe.org).
|
|
19
|
-
|
|
20
|
-
## Setup
|
|
21
|
-
|
|
22
|
-
Fun fact: of course you don't really need *uv* for this. I'm just using this project to
|
|
23
|
-
get used to it as I think it has a lot of potential.
|
|
24
|
-
|
|
25
|
-
1. Install [uv](https://github.com/astral-sh/uv) if needed:
|
|
26
|
-
|
|
27
|
-
```sh
|
|
28
|
-
pip install uv
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
2. Install dependencies using *uv*:
|
|
32
|
-
|
|
33
|
-
```sh
|
|
34
|
-
uv pip install -r pyproject.toml
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
If you want to develop:
|
|
38
|
-
|
|
39
|
-
```sh
|
|
40
|
-
uv pip install -r pyproject.toml --extra dev
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
3. Run the app in test mode:
|
|
44
|
-
|
|
45
|
-
```sh
|
|
46
|
-
python run_test.py
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Visit [http://127.0.0.1:5000/](http://127.0.0.1:5000/) in your browser to see "hello world".
|
|
50
|
-
|
|
51
|
-
4. Build a package and upload it to Pypi
|
|
52
|
-
|
|
53
|
-
```sh
|
|
54
|
-
uv hatchling build
|
|
55
|
-
uv twine upload dist/*
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## License
|
|
59
|
-
|
|
60
|
-
This project is licensed under the MIT License. See the `pyproject.toml` for details.
|
whatdidyoudo-0.1.0/run_test.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|