Orion Sandbox
Orion是一个提供终端模拟器和浏览器代理功能的服务器。它可以作为独立服务运行,也可以作为Python包导入使用。
## 使用方法
### 作为服务使用
#### 方法1: 使用命令行工具
安装后,可以直接使用命令行工具启动服务:
```bash
# 使用默认配置启动
orion-server
# 指定端口和日志级别
orion-server --port 8888 --log-level debug
# 开发模式(自动重载)
orion-server --reload
方法2: 使用Python脚本启动
python start_server.py --port 8330
作为库导入使用
可以将Orion作为Python库导入使用,示例代码:
import asyncio
from app import BrowserManager, terminal_manager, text_editor
# 初始化浏览器管理器
async def browser_example():
browser = BrowserManager(headless=False)
await browser.initialize()
# 执行浏览器操作...
await browser.close()
# 使用终端管理器
async def terminal_example():
terminal = await terminal_manager.create_or_get_terminal("my_terminal")
await terminal.execute_command("ls -la")
history = terminal.get_history(True, True)
# 处理终端输出...
# 运行示例
asyncio.run(browser_example())
更多示例请参考 examples/use_as_package.py。
Docker部署
# 构建容器
docker build -t orion-server .
# 运行容器
docker run -p 8330:8330 orion-server
API文档
启动服务后,访问 http://localhost:8330/docs 查看API文档。
许可证
MIT
Metadata
Release files for orion-browser 0.6.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 | |
|---|---|---|---|---|
| orion_browser-0.6.0.tar.gz | 407.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| orion_browser-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 851.9 kB
Release files / orion_browser-0.6.0.tar.gz
| Download URL | orion_browser-0.6.0.tar.gz |
|---|---|
| Size | 407.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53922b5ac0f9fe8844994835719c357977e7f1f4c2c96b7e3d6c02abbd95f6dd
|
|
BLAKE2b-256 checksum How to use checksums |
c62ea9bec1e184176168427bfa8dee4c4b1eb7cd47fffdd2c0dbe5666c4cd62f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / orion_browser-0.6.0-py3-none-any.whl
| Download URL | orion_browser-0.6.0-py3-none-any.whl |
|---|---|
| Size | 444.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3bab849efec07830dbd8bdf3e490a6ce8999d5d5b755faae4f78764330cd86f6
|
|
BLAKE2b-256 checksum How to use checksums |
3c67e8c1bcd0652423d56984d33ebc81d5403d4e7bdbae29e4f16d7fbfd497d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for orion-browser 0.6.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.