A Python library for searching the FBI's wanted persons database.
Project description
FBI Wanted Library
Overview
The FBI Wanted Library is a Python package that provides an interface to search for wanted persons using the FBI's Wanted API. It allows users to filter search results based on various criteria such as name, race, hair color, eye color, sex, and field offices.
Installation
You can install the library using pip. Run the following command in your terminal:
pip install fbi-wanted-library
Usage
Here is a simple example of how to use the FBI Wanted Library:
from fbi_wanted.fbi_wanted import FBIWanted
# Search for wanted persons with specific criteria
results = FBIWanted.search(hair_colour="Brown")
# Print the total number of results fetched
print(f"Total results fetched: {len(results)}")
# Print the first 5 results
for result in results[:5]:
print(result)
Methods
The FBIWanted class provides the following methods:
search(name: str, race: str, hair_colour: str, eye_colour: str, sex: str, field_offices: str) -> list: Searches for wanted persons with optional filters._search(params: dict) -> list: Fetches all paginated results from the FBI Wanted API with filters._get_results(params: dict, page: int) -> dict | None: Fetches results for a specific page using requests._get_page(params: dict, page: int) -> dict | None: Fetches a specific page of results.
Contributing
Contributions are welcome! If you would like to contribute to the project, please fork the repository and submit a pull request. Make sure to include tests for any new features or bug fixes.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fbi-wanted-library-0.1.0.tar.gz.
File metadata
- Download URL: fbi-wanted-library-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae3df4f2cc9485d7f3e90b8d5b71b39316ca6e46ab94b318f9075b93906ac963
|
|
| MD5 |
ffa68498d76936006db89d05d4918eab
|
|
| BLAKE2b-256 |
d9c90f23ca3123fe1b1dd07df67b6d935a4fe1e48b5eca7a9611831c055d73db
|
File details
Details for the file fbi_wanted_library-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fbi_wanted_library-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51e0ede7f7a703073f99e4de40987187ed589d2e28e6cbf2f08c98192372517b
|
|
| MD5 |
c9d29c4edc095ee97c575f28ad35a8d5
|
|
| BLAKE2b-256 |
0a4227989457208adf3130ce3a0ef45cc3ca052d157b287e15e2a9ada07ebb12
|