lawLib
Library to extract legal information from official resources.
Get started
Get data from United States and Spanish Supreme Courts:
from typing import List
from scrapper import SupremeCourtUnitedStates, SupremeCourtSpain
import configparser
config = configparser.ConfigParser()
config.read("config.ini")
case_ids:List = [str(i) for i in [*range(1,5)]]
area:str='courts'
source_SpanishSupremeCourt:str = 'SpanishSupremeCourt'
source_USASupremeCourt:str = 'USASupremeCourt'
#Something like data/
output_path:str = config['EXTRA']['OutputPath']
#Get some cases and save them on local files
SupremeCourtSpain(source_SpanishSupremeCourt,case_ids).get_data(output_path,'json',True)
#Get some cases and return as list
print(SupremeCourtSpain(source_SpanishSupremeCourt,case_ids).get_data(output_path,'json',False))
#Get some cases and save them on local files
SupremeCourtUnitedStates(source_USASupremeCourt,area).get_data(output_path,'json',True)
#Get some cases and return as list
print(SupremeCourtUnitedStates(source_USASupremeCourt,area).get_data(output_path,'json',False))
Installation for development purposes
<h3>:construction: Working enviroment:</h3>
<li>Python version <b>3.9</b></li>
<li>Virtual enviroment: <b>py -m venv env</b></li>
<li>Activate on WINDOWS: <b>env\Scripts\activate</b></li>
<li>Activate on MAC: <b>source env/bin/activate</b></li>
<h3>:books: Dependencies</h3>
<li>Install with: <b>pip3 install -r requirements.txt</b></li>
<h3>:mag_right: Testing</h3>
<li>Launch tests with: <b>python -m unittest -v tests/data_scrapper_test.py</b></li>
Metadata
Release files for lawLib 0.5.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 |
|---|---|---|---|---|
| lawLib-0.5.1.tar.gz | 4.4 kB | Without provenance | Details for lawLib-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lawLib-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for lawLib-0.5.1-py3-none-any.whl |
Total release size: 9.7 kB
Release files / lawLib-0.5.1.tar.gz
| Download URL | lawLib-0.5.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88e816aded39582466b561d6fb1fa9ed9f68f78b4623edf5637692af1effacf8
|
|
BLAKE2b-256 checksum How to use checksums |
69e4bfe11376af7a70c1f48eec0eb958db07b414a8caa9fd1c1456028c1e9ab9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Release files / lawLib-0.5.1-py3-none-any.whl
| Download URL | lawLib-0.5.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a52b274d73aea71d18621f7d2d9979b595dae788db405f6d87f29aa9e9dd9d52
|
|
BLAKE2b-256 checksum How to use checksums |
eeade6e90cf255ebaa880ac6c0b32dbaa02f5723bb34fb73e8ad468680b75c0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Security for lawLib 0.5.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.