The python package for Revornix API.
Project description
Revornix-Python-Lib
The python package for Revornix API.
📕 API Document: revornix/api
Full Docker App
https://github.com/Qingyon-AI/Revornix
Introduction
🚀 RoadMap: RoadMap
🖥️ Official Website: https://revornix.com
❤️ Join our community: Discord | WeChat | QQ
Installation
pip install revornix
Usage
Upload File
from revornix import Session
session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
res = session.upload_file(local_file_path="", remote_file_path="")
Create Document Label
from revornix import Session, Schema
session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
data = Schema.DocumentSchema.LabelAddRequest(
name="test"
)
res = session.create_document_label(data=data)
Create Section Label
from revornix import Session, Schema
session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
data = Schema.SectionSchema.LabelAddRequest(
name="test"
)
res = session.create_section_label(data=data)
Create Section
from revornix import Session, Schema
session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
data = Schema.SectionSchema.SectionCreateRequest(
title="test",
description="test",
public=False,
cover_id=1,
labels=[]
)
res = session.create_section(data=data)
Get Mine All Document Labels
from revornix import Session
session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
res = session.get_mine_all_document_labels()
Create Quick Note Document
from revornix import Session, Schema
session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
data = Schema.DocumentSchema.QuickNoteDocumentParameters(
content="test",
sections=[],
auto_summary=False
)
res = session.create_quick_note_document(data=data)
Create Website Document
from revornix import Session, Schema
session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
data = Schema.DocumentSchema.WebsiteDocumentParameters(
url="https://www.google.com",
sections=[],
auto_summary=False
)
res = session.create_website_document(data=data)
Create File Document
from revornix import Session, Schema
session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
data = Schema.DocumentSchema.FileDocumentParameters(
file_name="demo",
sections=[],
auto_summary=False
)
res = session.create_file_document(data=data)
Contributors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
revornix-0.0.6.tar.gz
(6.4 kB
view details)
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 revornix-0.0.6.tar.gz.
File metadata
- Download URL: revornix-0.0.6.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87e86ce806f22b3bc7e668892d1bc30ec724fcaffe094ed726cc0af54c3d7f22
|
|
| MD5 |
c03835419632f6271eda695d4a0670a4
|
|
| BLAKE2b-256 |
a0d8c1e8a4a604b0d90a6e612dd26798ff45444156036c069da4c45aa8e830e5
|
File details
Details for the file revornix-0.0.6-py3-none-any.whl.
File metadata
- Download URL: revornix-0.0.6-py3-none-any.whl
- Upload date:
- Size: 6.9 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 |
3110e0bc42187affb52bf51926e6c829c3596ee34850d0f680dc20480888a714
|
|
| MD5 |
de52676aa6ba7a10e5752168b25f94a3
|
|
| BLAKE2b-256 |
e520799697483eaa86724258d0ecf7f1940c44e8ac7a25de610f5bb6bdc35099
|