A small example package
Project description
JSON extracter es una herramienta que permite extraer objetos JSON implícitos en un texto. Este paquete busca automáticamente cualquier JSON válido dentro de un texto dado y lo extrae para su uso posterior.
Características Detecta y extrae JSON implícito en cualquier texto. Fácil de usar con una API sencilla. Instalación Puedes instalar JSON extracter usando pip:
pip install json-extracter
Uso Aquí tienes un ejemplo básico de cómo usar JSON extracter:
python Copiar código from json-extracter import json_parse
texto = """ Este es un ejemplo de texto que contiene un JSON implícito: {"name": "John", "age": 30, "city": "New York"} y aquí continúa el texto. """
json_extraido = json_parse(texto)
for json_obj in json_extraido: print(json_obj)
Salida esperada json Copiar código {"name": "John", "age": 30, "city": "New York"} API extract_json(texto)
texto (str): El texto que contiene el JSON implícito. Retorna: Una lista de objetos JSON extraídos del texto. Contribuir ¡Las contribuciones son bienvenidas! Si tienes ideas, encuentra un error o quieres mejorar el proyecto, por favor abre un issue o envía un pull request.
Licencia Este proyecto está licenciado bajo la Licencia MIT. Consulta el archivo LICENSE para obtener más detalles.
Contacto Para cualquier pregunta o comentario, por favor contacta a edgar.edgarroman@gmail.com.
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
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 json_extracter-1.0.5.tar.gz.
File metadata
- Download URL: json_extracter-1.0.5.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9f833ee83a9bde886cc39056c1cfcd1472e5ad912e8a4058efac89f31b610a0
|
|
| MD5 |
02b857a9c610dae834d12287cbb646d2
|
|
| BLAKE2b-256 |
e63cf8f2d6656a270fc349800313906bc41c459d117520fa07e928bbcb48feee
|
File details
Details for the file json_extracter-1.0.5-py3-none-any.whl.
File metadata
- Download URL: json_extracter-1.0.5-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
925e256d136d1d4b5ea5ad60e94533c318b20f5fea3895df8719bbe941e80cc1
|
|
| MD5 |
97fb6ae99485d99bd9b974fc1e6be7c8
|
|
| BLAKE2b-256 |
defe34bad0f2f5343288d51a1fd41571735688a93eaf43b41aa3e6ab5617aa9f
|