semvec/pypi-packages huggingface dataset:
pymorton 1.0.5
A lightweight morton coder with lat/long support.
License: MIT
Requires Python: >=2.6
Keywords: nearest neighbors,geo hashing,geo,z-order,morton coding,hashing


Ordinal hashing of multidimensonal data and geographic coordinates via Morton coding / Z-ordering.

In mathematical analysis and computer science, `Z-order`, `Morton-order`, or a `Morton-code` is a function
which maps multidimensional data to one dimension while preserving locality of the data points.
It was introduced in 1966 by IBM researcher, G. M. Morton. The z-value of a point in multidimensions is
calculated by interleaving the binary representations of its coordinate values. Once the data are sorted
into this ordering, any one-dimensional data structure can be used, such as binary search trees, B-trees,
skip lists, or hash tables. The resulting ordering can equivalently be described as the order one would
achieve from a depth-first traversal of a quadtree, where `{x, y, ..., K}` are combined into a single
ordinal value that is easily compared, searched, and indexed against other Morton numbers.
enaml-native-maps 1.2
enaml-native-maps package for enaml-native-cli
License: MIT

# enaml-native-maps
GoogleMaps for enaml-native

[![See the demo on youtube](https://img.youtube.com/vi/qH1EByO8pwM/0.jpg)](https://youtu.be/qH1EByO8pwM)

### Features

This package contains the following widgets:

- `MapView` with traffic, layers, buildings, and camera control
- `MapMarker` with customizable info windows
- `MapPolygon`, `MapPolyline`, and `MapCirlce`

You may want to also use the [`LocationManager`](https://github.com/codelv/enaml-native/blob/master/src/enamlnative/android/android_location.py) from `enamlnative.android.api` for GPS updates. See   

### Installing

1. Install `enaml-native-maps` using the [enaml-native-cli](https://github.com/codelv/enaml-native-cli) (or pip)

```bash

#: Using the enaml-native cli
enaml-native install enaml-native-maps

#: or via pip and link it
pip install enaml-native-maps
enaml-native link enaml-native-maps

```


2. Next, add `enaml-native-maps: ""` to your app's `package.json`


3. Then update the manifest in `android/app/src/main/AndroidManifext.xml` to include:

```bash

        <!-- If using google maps these two are required.
        You must also define the API key in gradle.properties-->
        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />
        <meta-data
            android:name="com.google.android.geo.API_KEY"
            android:value="@string/google_maps_key" />


```

> Note: Make sure it is __within the `<application>` tags__!  


4. Now in `android/app/build.gradle` add the `resValue` lines below under the `buildTypes` 
to  tell gradle to pull your key from the `gradle.properties`


```groovy

    buildTypes {
        debug {
            // Add this line
            resValue "string", "google_maps_key",
                    (project.findProperty("GOOGLE_MAPS_API_KEY") ?: "")
        }
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            // And add this line
            resValue "string", "google_maps_key",
                    (project.findProperty("GOOGLE_MAPS_API_KEY") ?: "")
        }
    }


```

5. Finally add your `GOOGLE_API_MAPS_KEY=yourapikey` in `android/app/gradle.properties`.


See [android's maps docs](https://developers.google.com/maps/documentation/android-api/map-with-marker) for help 
and to get an API key. 

 ### Usage

 See the examples folder.
psycopg2-contextmanager 1.0.3
Minimal psycopg2 wrapper for easier interfacing with databases
License: MIT

Installation
============

Run ``pip install psycopg2-contextmanager``

Usage
=====

::

    from psycopg2_contextmanager import database_connection

    with database_connection(<database_connection_string>) as cursor:
        cursor.execute(<query>)

Commits are handled automatically. If the query fails, the package will log the exception along with the line ``Unable to run query`` and re-raise it.