Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fbi-wanted-library-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fbi_wanted_library-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for fbi-wanted-library-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae3df4f2cc9485d7f3e90b8d5b71b39316ca6e46ab94b318f9075b93906ac963
MD5 ffa68498d76936006db89d05d4918eab
BLAKE2b-256 d9c90f23ca3123fe1b1dd07df67b6d935a4fe1e48b5eca7a9611831c055d73db

See more details on using hashes here.

File details

Details for the file fbi_wanted_library-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fbi_wanted_library-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51e0ede7f7a703073f99e4de40987187ed589d2e28e6cbf2f08c98192372517b
MD5 c9d29c4edc095ee97c575f28ad35a8d5
BLAKE2b-256 0a4227989457208adf3130ce3a0ef45cc3ca052d157b287e15e2a9ada07ebb12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page