semvec/pypi-packages huggingface dataset:
intersection-grouper 0.11
Groups lists by common intersections
License: MIT
Keywords: group,intersections,lists


# Groups lists by common intersections

```python
pip install intersection-grouper
```


```python

from intersection_grouper import group_lists_with_intersections

listgroup = [
    [5, 3, 4, 5],
    [5, 11, 12, 3],
    [52, 34],
    [34, 111, 112],
    [1000, 300],
    [300, 5000],
]

x = group_lists_with_intersections(listgroup, keep_duplicates=True)
print(x)
[(34, 34, 52, 111, 112), (300, 300, 1000, 5000), (3, 3, 4, 5, 5, 5, 11, 12)]

x2 = group_lists_with_intersections(listgroup, keep_duplicates=False)
print(x2)
[(34, 52, 111, 112), (300, 1000, 5000), (3, 4, 5, 11, 12)]

```
django-easy-geoposition-field 1.0.2
Django simple geoposition field with OSM widget
License: MIT
Requires Python: >=3.7
Keywords: geoposition,widget,django,field

===============================================
Django simple geoposition field with OSM widget
===============================================

|codecov| |version| |downloads| |license|

This package adds geoposition field with map widget to django. It don't deppend
on GIS extensions.

Install
-------

.. code:: bash

	pip install django-easy-geoposition-field

Usage
-----

Add ``django_geoposition_field`` to ``INSTALLED_APPS``.

.. code:: python

	# settings.py
	INSTALLED_APPS = (
		# ...
		'django_geoposition_field',
	)

Now you can add ``GeopositionField`` to your model:

.. code:: python

	# models.py
	from django_geoposition_field.fields import GeopositionField

	class Model(models.Model):
		position = GeopositionField()


.. image:: https://raw.github.com/wiki/mireq/django-geoposition-field/admin.png?v2022-12-24


.. |codecov| image:: https://codecov.io/gh/mireq/django-geoposition-field/branch/master/graph/badge.svg?token=T801PBRI31
	:target: https://codecov.io/gh/mireq/django-geoposition-field

.. |version| image:: https://badge.fury.io/py/django-easy-geoposition-field.svg
	:target: https://pypi.python.org/pypi/django-easy-geoposition-field/

.. |downloads| image:: https://img.shields.io/pypi/dw/django-easy-geoposition-field.svg
	:target: https://pypi.python.org/pypi/django-easy-geoposition-field/

.. |license| image:: https://img.shields.io/pypi/l/django-easy-geoposition-field.svg
	:target: https://pypi.python.org/pypi/django-easy-geoposition-field/
mar-azure-blob-utils 0.3
A wrapper libray for Azure Blob Storage
License: MIT

# mar-azure_blob_utils

## Description
This package contains a set of utilities for interacting with Azure Blob Storage.
To use, instantiate the AzureBlobUtils class (usually as 'abu') with the SAS connection string as an argument.

The following methods are available:
- list_blobs_in_container
    - Returns a list of all blobs in a container.
- check_blob_exists
    - Returns True if a blob exists, False if it does not.
- check_for_new_blobs
    - Returns a true if there are blobs in a container (slight misnomer, but it's what I'm using it for).
    - This may be renamed to 'check_for_blobs' in the future.
- download_blob
    - Downloads a blob to a specified location.
- upload_blob
    - Uploads a blob to a specified location.
- delete_blob
    - Deletes a blob.
- copy_blob
    - Copies a blob from one container to another.
mar-db-utils 0.2
A simple set of Posgres DB utilities
License: MIT

# mar-db_utils

## Description
This is a library that contains a set of functions that can be used to interact with a databases.  Currently, the library only supports PostgreSQL.
To use, instantiate the PgDbOps class and pass in the database name, user, password, port, and sslmode as arguments.

The PgDbOps class has the following methods:
- connect_db
    - This method connects to the database and returns a connection object.
- close_db
    - This method closes the database connection.
- sqlrun
    - This method runs a single SQL statement.
- runinsmultiples
    - This method runs a single SQL statement multiple times.
- runbulkinsert
    - This method runs a bulk insert SQL statement. 
- insert_data
    - This method inserts data into a table. This method uses sqlrun to run the SQL statement.
- update_data
    - This method updates data in a table. This method uses sqlrun to run the SQL statement.
- delete_data
    - This method deletes data from a table.  This method uses sqlrun to run the SQL statement.
- select_data
    - This method selects data from a table.

## Setup
Create a virtual environment
Activate the virtual environment
Install the following libraries:
- psycopg2-binary
- pystest
- python-dotenv

Create a .env file and add the following:
- DB_NAME
- DB_USER
- DB_PORT
- DB_SSLMODE
- DB_PASSWORD