This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.2.1 instead.
Reason given by maintainers: Version number should've been 1.1.3
MEOS (Mobility Engine, Open Source) is a C library which enables the manipulation of
temporal and spatio-temporal data based on MobilityDB's data types and functions.
PyMEOS is a Python library built on top of MEOS using CFFI which presents a set of classes to manipulate spatio-temporal
information
Usage
Installation
pip install pymeos
PyMEOS wheel should be compatible with any system, but it is possible that the pre-built distribution is not available for PyMEOS CFFI for some OS/Architecture.
If it is not available, see the source installation notes on PyMEOS CFFI's readme on how to proceed
Sample code
IMPORTANT Before using any PyMEOS function, always call
pymeos_initialize. Otherwise, the library will crash with aSegmentation Faulterror. You should also always callpymeos_finalizeat the end of your code.
from pymeos import pymeos_initialize, pymeos_finalize, TGeogPointInst, TGeogPointSeq
# Important: Always initialize MEOS library
pymeos_initialize()
sequence_from_string = TGeogPointSeq(string='[Point(10.0 10.0)@2019-09-01 00:00:00+01, Point(20.0 20.0)@2019-09-02 00:00:00+01, Point(10.0 10.0)@2019-09-03 00:00:00+01]')
print(f'Output: {sequence_from_string}')
sequence_from_points = TGeogPointSeq(instant_list=[TGeogPointInst(string='Point(10.0 10.0)@2019-09-01 00:00:00+01'), TGeogPointInst(string='Point(20.0 20.0)@2019-09-02 00:00:00+01'), TGeogPointInst(string='Point(10.0 10.0)@2019-09-03 00:00:00+01')], lower_inc=True, upper_inc=True)
speed = sequence_from_points.speed()
print(f'Speeds: {speed}')
# Call finish at the end of your code
pymeos_finalize()
Metadata
Release files for pymeos 1.2.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pymeos-1.2.0a1.tar.gz | 59.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymeos-1.2.0a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 138.8 kB
Release files / pymeos-1.2.0a1.tar.gz
| Download URL | pymeos-1.2.0a1.tar.gz |
|---|---|
| Size | 59.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44293265025a9a290e2d8a7aa58d30aa52f43564ea087d962ba2ee2082560d4d
|
|
BLAKE2b-256 checksum How to use checksums |
5f3aad05aff7e68911ae7c73edb9a93f86ee12262687095269e473ff74cbad72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / pymeos-1.2.0a1-py3-none-any.whl
| Download URL | pymeos-1.2.0a1-py3-none-any.whl |
|---|---|
| Size | 78.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c20f92549bf2ea59b4a2435bc5329048729454da41545be4ab6ee8613730742
|
|
BLAKE2b-256 checksum How to use checksums |
e641171183a15b12d4fb5f590850cee5148b569b326f38fffe6fdb4e5672ec62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|