==============================
This package contains spatial generators to be used with model_mommy.
Model Mommy is a Django package that creates random model instances with
predefined data.
This work intends to expand it and allow it to generate GeoDjango spatial
fields.
At this moment, there is a generator for point (random), linestring (random)
and polygon (rectangular polygon) field types.
This needs substantial help with packaging and testing.
All new ideas welcome.
# Install
To install this you just need to
```bash
pip install -e git+https://github.com/sigma-geosistemas/mommy_spatial_generators.git#egg=mommy_spatial_generators
```
# Dependencies
* Model Mommy (obviously);
# How to make this work
To integrate this work with model_mommy, you need to create a dict variable
on your settings.py called MOMMY_CUSTOM_FIELDS_GEN and concatenate the already
predefined dict we provide (MOMMY_SPATIAL_FIELDS), located in generators.py.
model_mommy should take of the rest.
```python
# settings.py
from mommy_spatial_generators import MOMMY_SPATIAL_FIELDS
MOMMY_CUSTOM_FIELDS_GEN = MOMMY_SPATIAL_FIELDS
```
# Special thanks to:
* mdj2, aka Matt Johnson for fixing some things and implementing MultiPolygon support (https://github.com/mdj2);
* pchiquet, aka Pierre Chiquet, for fixing some things and implementing support for granulirity in point generation (https://github.com/pchiquet);
Metadata
Release files for mommy_spatial_generators 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mommy_spatial_generators-0.1.2.tar.gz | 3.6 kB | Without provenance | Details |
Release files / mommy_spatial_generators-0.1.2.tar.gz
| Download URL | mommy_spatial_generators-0.1.2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
888dd3ca9c4b73f424b677ae153dea56729867cea73ff29c74f17f49cc3ac7a2
|
|
BLAKE2b-256 checksum How to use checksums |
4529e096a9f0bb7bb3d8919ffd65776b018d42c6c6d929ff6a10123cb3a9670d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mommy_spatial_generators 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.