python-filter
A biblioteca python-filter oferece classes para trabalhar com listas de forma conveniente e eficiente.
Classes Disponíveis
DictListFilter: Manipula listas de dicionários.TupleListFilter: Manipula listas de tuplas.
Instalação
Para instalar a biblioteca, você pode usar pip:
pip install python-filter
Uso
DictListFilter
Esta classe permite trabalhar com listas de dicionários.
Exemplo de Uso:
from pyfilter import DictListFilter
# Criar uma lista de dicionários
data = [
{"id": 1, "name": "Alice"},
{"id": 2, "name": "Bob"},
{"id": 3, "name": "Charlie"}
]
# Inicializar a classe
dict_items = DictListFilter(data)
# Exemplo de operações disponíveis
result = dict_items.get_with_key_value("id", 2)
print(result) # Saída: {"id": 2, "name": "Bob"}
TupleListFilter
Esta classe permite trabalhar com listas de tuplas.
Exemplo de Uso:
from pyfilter import TupleListFilter
# Criar uma lista de tuplas
data = [
(1, "Alice"),
(2, "Bob"),
(3, "Charlie")
]
# Inicializar a classe
tuple_items = TupleListFilter(data)
# Exemplo de operações disponíveis
result = tuple_items.get_with_value("Bob")
print(result) # Saída: (2, "Bob")
Contribuição
Contribuições são bem-vindas! Para sugestões, melhorias ou relatórios de bugs, sinta-se à vontade para abrir uma issue ou enviar um pull request no repositório GitHub.
Licença
Este projeto é licenciado sob a Licença MIT. Consulte o arquivo LICENSE para obter detalhes.
Metadata
Release files for python-filter 2.1.0
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 |
|---|---|---|---|---|
| python_filter-2.1.0.tar.gz | 3.4 kB | Without provenance | Details for python_filter-2.1.0.tar.gz |
Release files / python_filter-2.1.0.tar.gz
| Download URL | python_filter-2.1.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c59bcfd7a6c5dd633d5b899ef0d9440404ae81699a780a72b4777172f01be9e4
|
|
BLAKE2b-256 checksum How to use checksums |
97eb543ac15b8cb1c555c636686ae380e922c1674cc39258fc35f5756245e673
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.2
|
Security for python-filter 2.1.0
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.