neatnet 0.0.1__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.
Files changed (53) hide show
  1. neatnet-0.0.1/.github/workflows/mypy.yml +40 -0
  2. neatnet-0.0.1/.github/workflows/testing.yml +98 -0
  3. neatnet-0.0.1/.gitignore +167 -0
  4. neatnet-0.0.1/.pre-commit-config.yaml +11 -0
  5. neatnet-0.0.1/CONTRIBUTING.md +122 -0
  6. neatnet-0.0.1/LICENSE +28 -0
  7. neatnet-0.0.1/PKG-INFO +64 -0
  8. neatnet-0.0.1/README.md +30 -0
  9. neatnet-0.0.1/ci/py311_latest.yaml +22 -0
  10. neatnet-0.0.1/ci/py311_oldest.yaml +20 -0
  11. neatnet-0.0.1/ci/py312_latest.yaml +22 -0
  12. neatnet-0.0.1/ci/py313_dev.yaml +29 -0
  13. neatnet-0.0.1/ci/py313_latest.yaml +22 -0
  14. neatnet-0.0.1/ci_artifacts/apalachicola/simplified_exclusion_mask.parquet +0 -0
  15. neatnet-0.0.1/ci_artifacts/apalachicola/simplified_standard.parquet +0 -0
  16. neatnet-0.0.1/codecov.yml +22 -0
  17. neatnet-0.0.1/data/README.md +25 -0
  18. neatnet-0.0.1/data/aleppo_1133/original.parquet +0 -0
  19. neatnet-0.0.1/data/aleppo_1133/simplified.parquet +0 -0
  20. neatnet-0.0.1/data/auckland_869/original.parquet +0 -0
  21. neatnet-0.0.1/data/auckland_869/simplified.parquet +0 -0
  22. neatnet-0.0.1/data/bucaramanga_4617/original.parquet +0 -0
  23. neatnet-0.0.1/data/bucaramanga_4617/simplified.parquet +0 -0
  24. neatnet-0.0.1/data/douala_809/original.parquet +0 -0
  25. neatnet-0.0.1/data/douala_809/simplified.parquet +0 -0
  26. neatnet-0.0.1/data/generate_simplified.py +82 -0
  27. neatnet-0.0.1/data/liege_1656/original.parquet +0 -0
  28. neatnet-0.0.1/data/liege_1656/simplified.parquet +0 -0
  29. neatnet-0.0.1/data/slc_4881/original.parquet +0 -0
  30. neatnet-0.0.1/data/slc_4881/simplified.parquet +0 -0
  31. neatnet-0.0.1/environment.yml +20 -0
  32. neatnet-0.0.1/neatnet/__init__.py +16 -0
  33. neatnet-0.0.1/neatnet/artifacts.py +1542 -0
  34. neatnet-0.0.1/neatnet/continuity.py +107 -0
  35. neatnet-0.0.1/neatnet/geometry.py +409 -0
  36. neatnet-0.0.1/neatnet/nodes.py +534 -0
  37. neatnet-0.0.1/neatnet/simplify.py +913 -0
  38. neatnet-0.0.1/neatnet/tests/conftest.py +142 -0
  39. neatnet-0.0.1/neatnet/tests/data/apalachicola_original.parquet +0 -0
  40. neatnet-0.0.1/neatnet/tests/data/apalachicola_simplified_exclusion_mask.parquet +0 -0
  41. neatnet-0.0.1/neatnet/tests/data/apalachicola_simplified_standard.parquet +0 -0
  42. neatnet-0.0.1/neatnet/tests/test_artifacts.py +25 -0
  43. neatnet-0.0.1/neatnet/tests/test_continuity.py +110 -0
  44. neatnet-0.0.1/neatnet/tests/test_geometry.py +334 -0
  45. neatnet-0.0.1/neatnet/tests/test_nodes.py +1093 -0
  46. neatnet-0.0.1/neatnet/tests/test_simplify.py +102 -0
  47. neatnet-0.0.1/neatnet.egg-info/PKG-INFO +64 -0
  48. neatnet-0.0.1/neatnet.egg-info/SOURCES.txt +51 -0
  49. neatnet-0.0.1/neatnet.egg-info/dependency_links.txt +1 -0
  50. neatnet-0.0.1/neatnet.egg-info/requires.txt +18 -0
  51. neatnet-0.0.1/neatnet.egg-info/top_level.txt +1 -0
  52. neatnet-0.0.1/pyproject.toml +87 -0
  53. neatnet-0.0.1/setup.cfg +4 -0
@@ -0,0 +1,40 @@
1
+ name: MyPy Type Checking
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches:
8
+ - "*"
9
+ schedule:
10
+ - cron: "59 23 * * *"
11
+ workflow_dispatch:
12
+ inputs:
13
+ version:
14
+ description: Manual Type Checking
15
+ default: type_checking
16
+ required: false
17
+
18
+ jobs:
19
+ mypy:
20
+ runs-on: ubuntu-latest
21
+ defaults:
22
+ run:
23
+ shell: bash -l {0}
24
+
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+
28
+ - name: setup micromamba
29
+ uses: mamba-org/setup-micromamba@v2
30
+ with:
31
+ environment-file: ci/py313_latest.yaml
32
+ create-args: >-
33
+ mypy
34
+
35
+ - name: Install package
36
+ run: pip install .
37
+
38
+ - name: Check package
39
+ run: |
40
+ mypy neatnet/ --ignore-missing-imports --install-types --non-interactive
@@ -0,0 +1,98 @@
1
+ name: Continuous Integration
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches:
8
+ - "*"
9
+ schedule:
10
+ - cron: "59 23 * * *"
11
+ workflow_dispatch:
12
+ inputs:
13
+ version:
14
+ description: Manual CI Run
15
+ default: test
16
+ required: false
17
+
18
+ jobs:
19
+ tests:
20
+ name: ${{ matrix.os }}, ${{ matrix.environment-file }}
21
+ runs-on: ${{ matrix.os }}
22
+ timeout-minutes: 30
23
+ continue-on-error: true
24
+ strategy:
25
+ matrix:
26
+ os: [ubuntu-latest]
27
+ environment-file: [
28
+ py311_oldest,
29
+ py311_latest,
30
+ py312_latest,
31
+ py313_latest,
32
+ py313_dev,
33
+ ]
34
+ include:
35
+ - environment-file: py313_latest
36
+ os: macos-13 # Intel
37
+ - environment-file: py313_latest
38
+ os: macos-latest # Apple Silicon
39
+ - environment-file: py313_latest
40
+ os: windows-latest
41
+ fail-fast: false
42
+
43
+ defaults:
44
+ run:
45
+ shell: bash -l {0}
46
+
47
+ steps:
48
+ - name: checkout repo
49
+ uses: actions/checkout@v4
50
+ with:
51
+ fetch-depth: 0 # Fetch all history for all branches and tags.
52
+
53
+ - name: setup micromamba
54
+ uses: mamba-org/setup-micromamba@v2
55
+ with:
56
+ environment-file: ci/${{ matrix.environment-file }}.yaml
57
+ micromamba-version: "latest"
58
+
59
+ - name: install package
60
+ run: "pip install -e . --no-deps"
61
+
62
+ - name: spatial versions
63
+ run: 'python -c "import geopandas; geopandas.show_versions();"'
64
+
65
+ - name: run tests
66
+ run: |
67
+ pytest \
68
+ neatnet/ \
69
+ --verbose \
70
+ -r a \
71
+ --numprocesses logical \
72
+ --color yes \
73
+ --cov neatnet \
74
+ --cov-append \
75
+ --cov-report term-missing \
76
+ --cov-report xml . \
77
+ --env_type ${{ matrix.environment-file }}
78
+
79
+ - name: zip artifacts - Ubuntu & macOS
80
+ run: zip ci_artifacts.zip ci_artifacts -r
81
+ if: matrix.os != 'windows-latest' && (success() || failure())
82
+
83
+ - name: zip artifacts - Windows
84
+ shell: powershell
85
+ run: Compress-Archive -Path ci_artifacts -Destination ci_artifacts.zip
86
+ if: matrix.os == 'windows-latest' && (success() || failure())
87
+
88
+ - name: archive observed simplified networks
89
+ uses: actions/upload-artifact@v4
90
+ with:
91
+ name: ci_artifacts-${{ matrix.os }}-${{ matrix.environment-file }}
92
+ path: ci_artifacts.zip
93
+ if: success() || failure()
94
+
95
+ - name: codecov
96
+ uses: codecov/codecov-action@v4
97
+ with:
98
+ token: ${{ secrets.CODECOV_TOKEN }}
@@ -0,0 +1,167 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
110
+ .pdm.toml
111
+ .pdm-python
112
+ .pdm-build/
113
+
114
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
115
+ __pypackages__/
116
+
117
+ # Celery stuff
118
+ celerybeat-schedule
119
+ celerybeat.pid
120
+
121
+ # SageMath parsed files
122
+ *.sage.py
123
+
124
+ # Environments
125
+ .env
126
+ .venv
127
+ env/
128
+ venv/
129
+ ENV/
130
+ env.bak/
131
+ venv.bak/
132
+
133
+ # Spyder project settings
134
+ .spyderproject
135
+ .spyproject
136
+
137
+ # Rope project settings
138
+ .ropeproject
139
+
140
+ # mkdocs documentation
141
+ /site
142
+
143
+ # mypy
144
+ .mypy_cache/
145
+ .dmypy.json
146
+ dmypy.json
147
+
148
+ # Pyre type checker
149
+ .pyre/
150
+
151
+ # pytype static type analyzer
152
+ .pytype/
153
+
154
+ # Cython debug symbols
155
+ cython_debug/
156
+
157
+ # PyCharm
158
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
159
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
160
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
161
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
162
+ #.idea/
163
+
164
+ cache/
165
+
166
+ # macOS stuff
167
+ *.DS_Store
@@ -0,0 +1,11 @@
1
+ files: "neatnet\/"
2
+ repos:
3
+ - repo: https://github.com/astral-sh/ruff-pre-commit
4
+ rev: "v0.8.1"
5
+ hooks:
6
+ - id: ruff
7
+ - id: ruff-format
8
+
9
+ ci:
10
+ autofix_prs: false
11
+ autoupdate_schedule: quarterly
@@ -0,0 +1,122 @@
1
+ # Contributing to ***`PLACEHOLDER`***
2
+
3
+ First off, thanks for taking the time to contribute! ❤️
4
+
5
+ All types of contributions are encouraged and valued. See this page for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉
6
+
7
+ > And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
8
+ > - Star the project
9
+ > - Tweet about it
10
+ > - Refer this project in your project's `README`
11
+ > - Mention the project at local meetups and tell your friends/colleagues
12
+
13
+ ## I Have a Question
14
+
15
+ > If you want to ask a question, we assume that you have read the available ***[Documentation](...) (xref https://github.com/uscuni/neatnet/issues/5)***.
16
+
17
+ Before you ask a question, it is best to search for existing [Issues](https://github.com/uscuni/neatnet/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first, especially [Stack Overflow](https://stackoverflow.com).
18
+
19
+ If you then still feel the need to ask a question and need clarification, we recommend the following:
20
+
21
+ - Open an [Issue](https://github.com/uscuni/neatnet/issues/new).
22
+ - Provide as much context as you can about what you're running into.
23
+ - Provide project and platform versions (`python`, `shapely`, `geopandas`, etc.), depending on what seems relevant.
24
+
25
+ We will then take care of the issue as soon as possible.
26
+
27
+ ## I Want To Contribute
28
+
29
+ ### Reporting Bugs
30
+
31
+ #### Before Submitting a Bug Report
32
+
33
+ A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
34
+
35
+ - Make sure that you are using the latest version.
36
+ - Determine if your bug is really a bug and not an error on your side, e.g. using incompatible environment components/versions (Make sure that you have read the ***[documentation](...) (xref https://github.com/uscuni/neatnet/issues/5)***.
37
+ - To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/uscuni/neatnet/issues).
38
+ - Also make sure to search the internet (especially [Stack Overflow](https://stackoverflow.com)) to see if users outside of the GitHub community have discussed the issue.
39
+ - Collect information about the bug:
40
+ - Stack trace (Traceback)
41
+ - OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
42
+ - Version of Python and relevant dependencies.
43
+ - Possibly your input and the output
44
+ - Can you reliably reproduce the issue? And can you also reproduce it with older versions?
45
+
46
+ #### How Do I Submit a Good Bug Report?
47
+
48
+ We use GitHub issues to track bugs and errors. If you run into an issue with the project:
49
+
50
+ - Open an [Issue](https://github.com/uscuni/neatnet/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
51
+ - Explain the behavior you would expect and the actual behavior.
52
+ - Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case. This is known as a [mininum reproducible example](https://en.wikipedia.org/wiki/Minimal_reproducible_example#:~:text=In%20computing%2C%20a%20minimal%20reproducible,to%20be%20demonstrated%20and%20reproduced.) – or MWE for short.
53
+ - Provide the information you collected in the previous section.
54
+
55
+ Once it's filed:
56
+
57
+ - The project team will label the issue accordingly.
58
+ - A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps.
59
+ - If the team is able to reproduce the issue, it will be left to be implemented by someone.
60
+
61
+ ### Suggesting Enhancements
62
+
63
+ This section guides you through submitting an enhancement suggestion for ***`PLACEHOLDER`***, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.
64
+
65
+ #### Before Submitting an Enhancement
66
+
67
+ - Make sure that you are using the latest version.
68
+ - Read the ***[documentation](...) (xref https://github.com/uscuni/neatnet/issues/5)*** carefully and find out if the functionality is already covered, maybe by an individual configuration.
69
+ - Perform a [search](https://github.com/uscuni/neatnet/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
70
+ - Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.
71
+
72
+ #### How Do I Submit a Good Enhancement Suggestion?
73
+
74
+ Enhancement suggestions are tracked as [GitHub issues](https://github.com/uscuni/neatnet/issues).
75
+
76
+ - Use a **clear and descriptive title** for the issue to identify the suggestion.
77
+ - Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
78
+ - **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
79
+ - **Explain why this enhancement would be useful** to most clustergram users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
80
+
81
+ ### Code Contribution
82
+
83
+ You can create a development environment using the `environment.yml` file.
84
+
85
+ ```sh
86
+ conda env create -f environment.yml
87
+ ```
88
+
89
+ To install ***`PLACEHOLDER`*** to the environment in an editable form, clone the repository, navigate to the main directory and install it with pip:
90
+
91
+ ```sh
92
+ pip install -e .
93
+ ```
94
+
95
+ When submitting a pull request:
96
+
97
+ - All existing tests should pass. Please make sure that the test suite passes, both locally and on GitHub Actions. Status on GHA will be visible on a pull request. GHA are automatically enabled on your own fork as well. To trigger a check, make a PR to your own fork.
98
+ - Ensure that documentation has built correctly. It will be automatically built for each PR.
99
+ - New functionality ***must*** include tests. Please write reasonable tests for your code and make sure that they pass on your pull request.
100
+ - Classes, methods, functions, etc. should have docstrings. The first line of a docstring should be a standalone summary. Parameters and return values should be documented explicitly.
101
+ - Follow PEP 8 when possible. We use ``Ruff`` for linting and formatting to ensure robustness & consistency in code throughout the project. It included in the ``pre-commit`` hook and will be checked on every PR.
102
+ - ***`PLACEHOLDER`*** supports Python 3.11+ only. When possible, do not introduce additional dependencies. If that is necessary, make sure they can be treated as optional.
103
+
104
+ #### Procedure
105
+
106
+ 1. *After* opening an issue and discussing with the development team, create a PR with the proposed changes.
107
+ 2. If [testing fails](https://github.com/uscuni/neatnet/actions/runs/11368511561) due to an update in the code base:
108
+ 3. Observed data is [saved as artifacts](https://github.com/uscuni/neatnet/actions/runs/11368511561#artifacts) from the workflow and can be download locally.
109
+ 4. We determine the `ci_artifacts-ubuntu-latest-py313_latest` data as the "truth."
110
+ 5. After comparison of the current "known" data with new data from (3.), if new data is "truthier," update your PR with the new "known" data.
111
+
112
+ #### Handling Edge Cases in Testing
113
+
114
+ Edge cases will crop up in full-scale FUA testing that we can ignore (following a thorough investigation – e.g. [`neatnet#77`](https://github.com/uscuni/neatnet/issues/77)) during testing. Once it is determined the geometry in question is not caused by a bug on our end, it can be added to the `KNOWN_BAD_GEOMS` collection in `tests/conftest.py`. This collection is a dictionary keyed by `<NAME>_CODE` of the city/FUA where the values are lists of index locations of simplified edges that can be ignored if they fail equality testing. As an example, see our initial "bad" geometries [here](https://github.com/uscuni/neatnet/blob/1be6b44b1a06d52453ecbaee205ae649101c4ea4/neatnet/tests/conftest.py#L25-L39), which were due to a variant number of coordinates in those resultant simplified edges created by [different versions of `shapely`](https://github.com/uscuni/neatnet/pull/67#issuecomment-2457333724).
115
+
116
+ ##### Code Structure
117
+
118
+ Code should be linted and formatted via `ruff`. With the [`.pre-commit` hooks](https://github.com/uscuni/neatnet/blob/main/.pre-commit-config.yaml) we have code in commits will be formatted and linted automatically once [`pre-commit` is installed](https://pre-commit.com/#installation).
119
+
120
+ ## Attribution
121
+
122
+ This guide is based on the **contributing-gen**. [Make your own](https://github.com/bttger/contributing-gen)!
neatnet-0.0.1/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2024, Research Team on Urban Structure
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
neatnet-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,64 @@
1
+ Metadata-Version: 2.1
2
+ Name: neatnet
3
+ Version: 0.0.1
4
+ Summary: Street geometry processing toolkit
5
+ Author-email: Martin Fleischmann <martin@martinfleischmann.net>, Anastassia Vybornova <anvy@itu.dk>, "James D. Gaboardi" <jgaboardi@gmail.com>
6
+ License: BSD 3-Clause
7
+ Project-URL: Home, https://github.com/uscuni/
8
+ Project-URL: Repository, https://github.com/uscuni/neatnet
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: BSD License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Topic :: Scientific/Engineering :: GIS
14
+ Requires-Python: >=3.11
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: esda>=2.6.0
18
+ Requires-Dist: geopandas>=1.0.1
19
+ Requires-Dist: libpysal>=4.12.1
20
+ Requires-Dist: momepy>=0.9.0
21
+ Requires-Dist: networkx>=3.3
22
+ Requires-Dist: numpy>=1.26.4
23
+ Requires-Dist: pandas>=2.2.3
24
+ Requires-Dist: scipy>=1.14.1
25
+ Requires-Dist: shapely>=2.0.6
26
+ Provides-Extra: tests
27
+ Requires-Dist: codecov; extra == "tests"
28
+ Requires-Dist: coverage; extra == "tests"
29
+ Requires-Dist: pre-commit; extra == "tests"
30
+ Requires-Dist: pyarrow>=17.0; extra == "tests"
31
+ Requires-Dist: pytest; extra == "tests"
32
+ Requires-Dist: pytest-cov; extra == "tests"
33
+ Requires-Dist: pytest-xdist; extra == "tests"
34
+
35
+ # `neatnet`: Street Geometry Processing Toolkit
36
+
37
+ [![Continuous Integration](https://github.com/uscuni/neatnet/actions/workflows/testing.yml/badge.svg)](https://github.com/uscuni/neatnet/actions/workflows/testing.yml) [![codecov](https://codecov.io/gh/uscuni/neatnet/graph/badge.svg?token=GFISMU0WPS)](https://codecov.io/gh/uscuni/neatnet)
38
+
39
+ ## Introduction
40
+
41
+ ## Documentation
42
+
43
+ ## Examples
44
+
45
+ ```py
46
+ import neatnet
47
+
48
+ simplified = neatnet.simplify_network(gdf)
49
+ ```
50
+
51
+ ## Contribution
52
+
53
+ See our guidelines in [`CONTRIBUTING.md`](https://github.com/uscuni/neatnet/blob/main/CONTRIBUTING.md).
54
+
55
+ ## Recommended Citation
56
+
57
+ ---------------------------------------
58
+
59
+ This package developed & and maintained by:
60
+ * [Martin Fleischmann](https://github.com/martinfleis)
61
+ * [Anastassia Vybornova](https://github.com/anastassiavybornova)
62
+ * [James D. Gaboardi](https://github.com/jGaboardi)
63
+
64
+ Copyright (c) 2024-, neatnet Developers
@@ -0,0 +1,30 @@
1
+ # `neatnet`: Street Geometry Processing Toolkit
2
+
3
+ [![Continuous Integration](https://github.com/uscuni/neatnet/actions/workflows/testing.yml/badge.svg)](https://github.com/uscuni/neatnet/actions/workflows/testing.yml) [![codecov](https://codecov.io/gh/uscuni/neatnet/graph/badge.svg?token=GFISMU0WPS)](https://codecov.io/gh/uscuni/neatnet)
4
+
5
+ ## Introduction
6
+
7
+ ## Documentation
8
+
9
+ ## Examples
10
+
11
+ ```py
12
+ import neatnet
13
+
14
+ simplified = neatnet.simplify_network(gdf)
15
+ ```
16
+
17
+ ## Contribution
18
+
19
+ See our guidelines in [`CONTRIBUTING.md`](https://github.com/uscuni/neatnet/blob/main/CONTRIBUTING.md).
20
+
21
+ ## Recommended Citation
22
+
23
+ ---------------------------------------
24
+
25
+ This package developed & and maintained by:
26
+ * [Martin Fleischmann](https://github.com/martinfleis)
27
+ * [Anastassia Vybornova](https://github.com/anastassiavybornova)
28
+ * [James D. Gaboardi](https://github.com/jGaboardi)
29
+
30
+ Copyright (c) 2024-, neatnet Developers
@@ -0,0 +1,22 @@
1
+ name: py311_neatnet-latest
2
+ channels:
3
+ - conda-forge
4
+ dependencies:
5
+ - python=3.11
6
+ - esda
7
+ - geopandas
8
+ - libpysal
9
+ - momepy
10
+ - networkx
11
+ - numpy
12
+ - osmnx
13
+ - pandas
14
+ - pyarrow
15
+ - pyogrio
16
+ - scipy
17
+ - shapely
18
+ # testing
19
+ - pre-commit
20
+ - pytest
21
+ - pytest-cov
22
+ - pytest-xdist
@@ -0,0 +1,20 @@
1
+ name: py311_neatnet-oldest
2
+ channels:
3
+ - conda-forge
4
+ dependencies:
5
+ - python=3.11
6
+ - esda=2.6.0
7
+ - geopandas=1.0.1
8
+ - libpysal=4.12.1
9
+ - momepy=0.9.0
10
+ - networkx=3.3
11
+ - numpy=1.26.4
12
+ - pandas=2.2.3
13
+ - scipy=1.14.1
14
+ - shapely=2.0.6
15
+ # testing
16
+ - pre-commit
17
+ - pyarrow=17.0
18
+ - pytest
19
+ - pytest-cov
20
+ - pytest-xdist
@@ -0,0 +1,22 @@
1
+ name: py312_neatnet-latest
2
+ channels:
3
+ - conda-forge
4
+ dependencies:
5
+ - python=3.12
6
+ - esda
7
+ - geopandas
8
+ - libpysal
9
+ - momepy
10
+ - networkx
11
+ - numpy
12
+ - osmnx
13
+ - pandas
14
+ - pyarrow
15
+ - pyogrio
16
+ - scipy
17
+ - shapely
18
+ # testing
19
+ - pre-commit
20
+ - pytest
21
+ - pytest-cov
22
+ - pytest-xdist
@@ -0,0 +1,29 @@
1
+ name: py313_neatnet-dev
2
+ channels:
3
+ - conda-forge
4
+ dependencies:
5
+ - python=3.13
6
+ - geos # for shapely
7
+ - git
8
+ - pip
9
+ # testing
10
+ - pre-commit
11
+ - pytest
12
+ - pytest-cov
13
+ - pytest-xdist
14
+ - pip:
15
+ # dev versions of packages
16
+ - --pre \
17
+ --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
18
+ --extra-index-url https://pypi.org/simple
19
+ - numpy
20
+ - pandas
21
+ - pyarrow
22
+ - pyogrio
23
+ - scipy
24
+ - git+https://github.com/pysal/esda.git
25
+ - git+https://github.com/geopandas/geopandas.git
26
+ - git+https://github.com/pysal/libpysal.git
27
+ - git+https://github.com/pysal/momepy.git
28
+ - git+https://github.com/networkx/networkx.git
29
+ - git+https://github.com/shapely/shapely.git
@@ -0,0 +1,22 @@
1
+ name: py313_neatnet-latest
2
+ channels:
3
+ - conda-forge
4
+ dependencies:
5
+ - python=3.13
6
+ - esda
7
+ - geopandas
8
+ - libpysal
9
+ - momepy
10
+ - networkx
11
+ - numpy
12
+ - osmnx
13
+ - pandas
14
+ - pyarrow
15
+ - pyogrio
16
+ - scipy
17
+ - shapely
18
+ # testing
19
+ - pre-commit
20
+ - pytest
21
+ - pytest-cov
22
+ - pytest-xdist