Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

中文 | English

Electerm sync server python

Build Status

A simple electerm data sync server with python.

Use

Requires python3

git clone git@github.com:electerm/electerm-sync-server-python.git
cd electerm-sync-server-python
python3 -m venv venv
# On Windows (PowerShell):
venv\Scripts\activate
# On Unix/Mac:
source venv/bin/activate

# Install dependencies
pip install -r requirements.txt

# create env file, then edit .env
cp sample.env .env

python3 src/app.py

# would show something like
# server running at http://127.0.0.1:7837

# in electerm sync settings, set custom sync server with:
# server url: http://127.0.0.1:7837
# Then you can use http://127.0.0.1:7837/api/sync as API Url in electerm custom sync

# JWT_SECRET: your JWT_SECRET in .env
# JWT_USER_NAME: one JWT_USER in .env

Test

bin/test

Write your own data store

Just take src/data_store.py as an example, write your own read/write method

Sync server in other languages

https://github.com/electerm/electerm/wiki/Custom-sync-server

About electerm

Open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client(Linux, Mac, Windows, Android, HarmonyOS).

Besides mainstream Windows/macOS/Linux/Android, electerm also supports HarmonyOS, and older systems — Ubuntu 18, Windows 7, macOS 10+, and special Chinese Linux distributions such as UOS, Kylin, and LoongArch (both old-world and new-world).

Homepage / Downloads · Theme · Docker · Online demo · Android · HarmonyOS · Huawei AppGallery · Microsoft Store · Snap Store · deb repo · rpm repo

🌐 electerm online — Public free online electerm app
🤖 electerm AI — Free AI for electerm users
💻 electerm-web — Web app version running in browser (including mobile device)

License

MIT

About

A simple electerm data sync server with python

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages