Skip to main content
Release files added late

2 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.

mgrs: Converting to and from MGRS and Decimal Degrees

GeoTrans provides C code for converting to and from MGRS, but well, it’s C code :). This is a simple ctypes wrapper around two of the MGRS-related functions in GeoTrans.

This library has an internal copy of some of the files from GeoTrans 2.4.2.

travisstatus

ChangeLog

1.3.6

1.3.4

1.3.3

1.3.2

  • Better Windows support

  • Bug fix for 3 digit longitudes

1.3.1

  • Python 3.x support

  • Allow user to override precision in UTMToMGRS

Usage

In a nutshell:

>>> import mgrs

>>> latitude = 42.0
>>> longitude = -93.0

>>> m = mgrs.MGRS()
>>> c = m.toMGRS(latitude, longitude)
>>> c
'15TWG0000049776'

>>> d = m.toLatLon(c)
>>> d
(41.999997975127997, -93.000000000000014)

>>> y = '321942.29N'
>>> yd = m.dmstodd(y)
32.328414

>>> d, m, s = m.ddtodms(32.328414)
>>> d, m, s
(32.0, 19.0, 42.290400)

You can also control the precision of the MGRS grid with the MGRSPrecision arguments in .toMGRS(). Other than that, there isn’t too much to it.

Metadata

Release files for mgrs 1.3.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Files added late

2 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for mgrs 1.3.6
File Size Uploaded Provenance Actions
mgrs-1.3.6.tar.gz 28.0 kB Without provenance Details for mgrs-1.3.6.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for mgrs 1.3.6
File Actions
mgrs-1.3.6-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for mgrs-1.3.6-cp38-cp38-win_amd64.whl
mgrs-1.3.6-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for mgrs-1.3.6-cp37-cp37m-win_amd64.whl
mgrs-1.3.6-cp37-cp37m-macosx_10_9_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64 Details for mgrs-1.3.6-cp37-cp37m-macosx_10_9_x86_64.whl
mgrs-1.3.6-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for mgrs-1.3.6-cp36-cp36m-win_amd64.whl
mgrs-1.3.6-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details for mgrs-1.3.6-cp36-cp36m-manylinux1_x86_64.whl
mgrs-1.3.6-cp36-cp36m-macosx_10_14_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64 Details for mgrs-1.3.6-cp36-cp36m-macosx_10_14_x86_64.whl

Total release size: 182.8 kB

Release files / mgrs-1.3.6.tar.gz

Download URL mgrs-1.3.6.tar.gz
Size 28.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3ac7a06071c732c04052d6114150496633e2408638813ea17f9e053f4074146d
BLAKE2b-256 checksum
How to use checksums
cca752514e2f365a88d8728b5b66ffde1cf649581a6ec8f55a233e6731849237
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200102 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

Release files / mgrs-1.3.6-cp38-cp38-win_amd64.whl

Download URL mgrs-1.3.6-cp38-cp38-win_amd64.whl
Size 22.0 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
b2fefff6d367d6dccd65d7b0f2fb979d87549bd056cfa7507426c61a903d2e79
BLAKE2b-256 checksum
How to use checksums
8081f7bec5109b2011b9e1ceb02ba541bef38caf31a96303e94d0db18d82edb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200119 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

Release files / mgrs-1.3.6-cp37-cp37m-win_amd64.whl

Download URL mgrs-1.3.6-cp37-cp37m-win_amd64.whl
Size 22.0 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
9ba61f1f23d6c7edb8bb9e5e70d6261ea1c5b8a57c984213caae000b6099f33d
BLAKE2b-256 checksum
How to use checksums
af16d695a1a434969be684430904a0a1fdc2411f62359238af74d9113473e65d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200119 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

Release files / mgrs-1.3.6-cp37-cp37m-macosx_10_9_x86_64.whl

Download URL mgrs-1.3.6-cp37-cp37m-macosx_10_9_x86_64.whl
Size 20.7 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
457421f4162c787e4dd1c1741058c20919894886b2f6aa4ce1044a8045c80389
BLAKE2b-256 checksum
How to use checksums
037eeefcb09c5e383461148988e705d413fa0b7b48ab53a710cde42d0e5c3205
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200102 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

Release files / mgrs-1.3.6-cp36-cp36m-win_amd64.whl

Download URL mgrs-1.3.6-cp36-cp36m-win_amd64.whl
Size 22.0 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
53165557b2ddb6990acac495341116f9525f60b1167822b9421c6f0819625934
BLAKE2b-256 checksum
How to use checksums
b5532876e3101df2a3823a4932117d6261e0403fbbc3f3d55884ab5d0c075a3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200119 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.7

Release files / mgrs-1.3.6-cp36-cp36m-manylinux1_x86_64.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL mgrs-1.3.6-cp36-cp36m-manylinux1_x86_64.whl
Size 46.8 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
9b255f68bbcb7514c5f2cba927368bd7b784032150827f68e44a48114797c6d2
BLAKE2b-256 checksum
How to use checksums
a75865ae635695c817f2e908e1d50a769ae0f5ead6de4b2878730f2761221be9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.4

Release files / mgrs-1.3.6-cp36-cp36m-macosx_10_14_x86_64.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL mgrs-1.3.6-cp36-cp36m-macosx_10_14_x86_64.whl
Size 21.1 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
505d725b6c89805b6aea2699f85c51fa8578287c6b50a0d21f1763248fb0e8d8
BLAKE2b-256 checksum
How to use checksums
d1a28eb7518f4eea6e19e84f70a3bb25aa1d9d6548f3828d7ff9af59e5699bdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.4

Security for mgrs 1.3.6

Upload timing

Release files added late

2 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page