Guest List
Introduction
Simple python package for a company to generate a guest list from a data file containing json encoded customer coordinates, based on their distance to the companies office.
Example data file is given in ‘customers.json’
The default distance is 100km and the default office location is:
{"latitude": 53.3381985, 'longitude': -6.2592576}
Requirements
python3
pip
Install
pip install guest_list
Usage
import guest_list
# 'customers.json' must be stored in the same directory as your python script
guests = guest_list.create("customers.json")
for guest in guests:
print("{}: {}".format(guest['user_id'], guest['name']))
The office location and maximum distance can be passed as arguments
import guest_list
office_coordinates = {'latitude': 53.378356, 'longitude': -6.588503}
max_distance_km = 60.0
guests = guest_list.create("customers.json", office_coordinates=office_coordinates, max_distance_km=max_distance_km)
for guest in guests:
print("{}: {}".format(guest['user_id'], guest['name']))
Tests
To run the tests:
git clone https://github.com/kujosHeist/guest_list.git cd guest_list python setup.py test
Metadata
Release files for guest_list 0.1
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 | Actions |
|---|---|---|---|---|
| guest_list-0.1.tar.gz | 4.5 kB | Without provenance | Details for guest_list-0.1.tar.gz |
Release files / guest_list-0.1.tar.gz
| Download URL | guest_list-0.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86ec90739687c22df120df5392f3897ce52368a6a0c87d91212f9819852ec3ec
|
|
BLAKE2b-256 checksum How to use checksums |
638ff690a4bc64ada5e624a90895ad27a8967dcf0406d852502200ea16725b10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for guest_list 0.1
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.