Nexus Gateway Python SDK
Native tool wrappers for CrewAI and LangChain — generate bilingual legal contracts, audited Solidity smart contracts, and Digital Twin v3.1 mapping via a single import.
Install
pip install nexus-gateway-sdk
# Optional framework dependencies:
pip install "nexus-gateway-sdk[crewai]" # CrewAI tools
pip install "nexus-gateway-sdk[langchain]" # LangChain tools
pip install "nexus-gateway-sdk[all]" # Both
Quick Start
CrewAI
from crewai import Agent, Task, Crew
from nexus_gateway import (
NexusStructuredDataTool,
NexusCodeModulesTool,
NexusLegalCodeTool,
NexusDryRunTool,
NexusManifestTool,
)
# Free tools (no auth needed)
dry_run = NexusDryRunTool()
manifest = NexusManifestTool()
# Paid tools (free trial available)
structured_data = NexusStructuredDataTool(client_id="my-agent")
code_modules = NexusCodeModulesTool(client_id="my-agent")
# Create agents with Nexus tools
auditor = Agent(
role="Smart Contract Auditor",
goal="Audit Solidity contracts for security vulnerabilities",
backstory="Expert in smart contract security",
tools=[dry_run, manifest],
)
crew = Crew(agents=[auditor], tasks=[...])
result = crew.kickoff()
LangChain
from langchain.agents import AgentExecutor, create_react_agent
from langchain_openai import ChatOpenAI
from nexus_gateway import create_langchain_tools
tools = create_langchain_tools(client_id="my-agent")
agent = create_react_agent(ChatOpenAI(model="gpt-4"), tools, prompt)
executor = AgentExecutor(agent=agent, tools=tools)
Direct Client
from nexus_gateway import NexusClient
client = NexusClient(client_id="my-agent")
manifest = client.get_manifest()
audit = client.dry_run(source_code="pragma solidity ^0.8.20; contract Token { }")
result = client.structured_data(schema_type="erc20_metadata", name="MyToken", symbol="MTK", decimals=18)
Available Tools
| Tool | Service | Cost | Auth |
|---|---|---|---|
NexusStructuredDataTool |
structured_data | 20 CRED ($0.20) | Yes |
NexusCodeModulesTool |
code_modules | 120 CRED ($1.20) | Yes |
NexusLegalCodeTool |
legal_code | 29,900 CRED ($299.00) | Yes |
NexusDryRunTool |
dry-run | FREE | No |
NexusManifestTool |
manifest | FREE | No |
License
MIT
Metadata
Release files for nexus-gateway-sdk 1.0.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 | |
|---|---|---|---|---|
| nexus_gateway_sdk-1.0.0.tar.gz | 10.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nexus_gateway_sdk-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.1 kB
Release files / nexus_gateway_sdk-1.0.0.tar.gz
| Download URL | nexus_gateway_sdk-1.0.0.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49b1b78bd3120ed56019b0118169d9955a75401992c59dcb8490fc941453524e
|
|
BLAKE2b-256 checksum How to use checksums |
3469983f84b277cb4d1e717088d55d63dfea2e1b864228e86e0a37eb65f64c24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|
Release files / nexus_gateway_sdk-1.0.0-py3-none-any.whl
| Download URL | nexus_gateway_sdk-1.0.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae22584acdb784b554cdde44862d12430dc81ed552084bfa754ac36be29b7a62
|
|
BLAKE2b-256 checksum How to use checksums |
4f3490635d617c4eb4599ae236f5a2696b99f4e46071382002d76db1bd7b2607
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|
Security for nexus-gateway-sdk 1.0.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.