
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
The SOLI Python Library provides a simple and efficient way to interact with the Standard for Open Legal Information (SOLI) ontology.
SOLI is an open, CC-BY licensed standard designed to represent universal elements of legal data, improving communication and data interoperability across the legal industry.
The changelog can be found at CHANGES.md.
You can install the SOLI Python library using pip:
pip install soli-python
For the latest development version, you can install directly from GitHub:
pip install --upgrade https://github.com/alea-institute/soli-python/archive/refs/heads/main.zip
Here's a simple example to get you started with the SOLI Python library:
from soli import SOLI
# Initialize the SOLI client
soli = SOLI()
# Search by prefix
results = soli.search_by_prefix("Mich")
for owl_class in results:
print(f"Class: {owl_class.label}")
# Search for a class by label
results = soli.search_by_label("Mich")
for owl_class, score in results:
print(f"Class: {owl_class.label}, Score: {score}")
# Get all areas of law
areas_of_law = soli.get_areas_of_law()
for area in areas_of_law:
print(area.label)
# Search with an LLM
async def search_example():
for result in await soli.parallel_search_by_llm(
"redline lease agreement",
search_sets=[
soli.get_areas_of_law(max_depth=1),
soli.get_player_actors(max_depth=2),
],
):
print(result)
import asyncio
asyncio.run(search_example())
LLM search uses the alea_llm_client
to provide abstraction across multiple APIs and providers.
For more detailed information about using the SOLI Python library, please refer to our full documentation.
We welcome contributions to the SOLI Python library! If you'd like to contribute, please follow these steps:
For more information, see our contribution guidelines.
A public, freely-accessible API is available for the SOLI ontology.
The API is hosted at https://soli.openlegalstandard.org/.
The source code for the API is available on GitHub at https://github.com/alea-institute/soli-api.
The SOLI Python library is released under the MIT License. See the LICENSE file for details.
If you encounter any issues or have questions about using the SOLI Python library, please open an issue on GitHub.
To learn more about SOLI, its development, and how you can get involved, visit the SOLI website or join the SOLI community forum.
FAQs
Python library for SOLI, the Standard for Open Legal Information
We found that soli-python demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.