SmolAgents tools for SignNow API integration
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
SignNow SmolAgents Tools
A collection of tools and agents for integrating with the SignNow API using the SmolAgents framework.
Features
This package provides:
- Agents with authorization using login/password and app key
- Tool collection (
ToolCollection) for interacting with SignNow’s core API:- Upload local documents
- Retrieve templates
- Create documents from templates
- Get detailed document information
- Fetch contacts
- Send invites for signing
You can use:
- A full agent (
SignNowSmolagentsCodeAgentorSignNowSmolagentsToolCallingAgent) - Just the tool collection (
SignNowSmolagentsToolset) - Or individual tools separately
Installation
pip install -r requirements.txt
Usage Example
Get Access Token
from sn_smolagent_tools_demo import access_token_from_login_password
token = access_token_from_login_password("your_login", "your_password", "your_app_key")
Using the Agent
from sn_smolagent_tools_demo import SignNowSmolagentsCodeAgent
agent = SignNowSmolagentsCodeAgent(access_token=token)
result = agent.run("Upload the file 'contract.pdf' and send it for signature to John Smith")
Using an Individual Tool
from sn_smolagent_tools_demo import UploadLocalFileTool
tool = UploadLocalFileTool(access_token=token)
doc_id = tool.forward(file_path="contract.pdf", filename="Contract with John")
Using the Tool Collection
from sn_smolagent_tools_demo import SignNowSmolagentsToolset
tools = SignNowSmolagentsToolset(access_token=token).tools
for tool in tools:
print(tool.name)
Available Tools
get_template_listupload_local_file_to_signnowget_contacts_from_signnowcreate_document_from_templateget_document_infosend_invite
TODO
- Add wrappers for more SignNow APIs
- Add logging and debugging features
- Improve error handling and retries
License
MIT License
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 signnow_smolagents-0.1.2.tar.gz.
File metadata
- Download URL: signnow_smolagents-0.1.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47f00861181876b8d6acc1256231785fc00583069252edff7aaf10ecbfd6a8a3
|
|
| MD5 |
a645ce4987e66e0609c20b24ef9fef77
|
|
| BLAKE2b-256 |
ec33a955cf8b857313f21e999640e85e09c42b8d88dd341ef49bc86e5729db07
|
File details
Details for the file signnow_smolagents-0.1.2-py3-none-any.whl.
File metadata
- Download URL: signnow_smolagents-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfcd1a6aaa0162fe67da8da1112a85dd32e73d5ec7e93963f55b9bf8c9bb78f9
|
|
| MD5 |
4db8f0d449938bed39d05abc8d392be5
|
|
| BLAKE2b-256 |
4b48c3ca7696ac8ba0fd4e574f6db2c59ae06756a745854aeb2c9f240fd4d790
|