https://github.com/taojy123/copa
A clipboard Synchronization Tool | Copy Once, Paste Anywhere
https://github.com/taojy123/copa
copy-paste
Last synced: about 1 year ago
JSON representation
A clipboard Synchronization Tool | Copy Once, Paste Anywhere
- Host: GitHub
- URL: https://github.com/taojy123/copa
- Owner: taojy123
- License: mit
- Created: 2019-07-03T14:55:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T19:31:18.000Z (about 2 years ago)
- Last Synced: 2025-03-31T17:59:01.385Z (about 1 year ago)
- Topics: copy-paste
- Language: Python
- Homepage: https://taojy123.github.io/copa
- Size: 181 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# copa
**Copy Once, Paste Anywhere**
-----
## Client
### You can run copa client in two ways
- Download the compiled executable client from releases page **[recommended]**
[https://github.com/taojy123/copa/releases](https://github.com/taojy123/copa/releases)
(In Mac, you should run client in command)
```
chmod a+x copa_mac
./copa_mac
```
- Or, run the source code script
```
git clone https://github.com/taojy123/copa
cd copa/client
pip install -r requirements.txt
python copa.py
```
### Configuration
`copaconf.json` will auto automatic generated while running
You can change it by text editor
```
{
"host": "http://copa.tslow.cn", // Server address, default is the public server
"token": "test1", // Clipboard will synchronize in the same token, please set your unique token
"interval": 5, // Synchronization interval
"language": "zh", // Currently only support "en" and "zh", default is English
"http_proxy": "", // Your can set a http proxy if necessary
"https_proxy": "" // if https_proxy is blank, it will be the same with http_proxy
}
```
## Server
### You can contect to copa server in three ways
- Use the public server **[recommended]**
Just set host `http://copa.tslow.cn` in `copaconf.json`
- Or, deploy your own server by docker
```
git clone https://github.com/taojy123/copa
cd copa/server
docker build -t copa-server .
docker run -p 80:8000 -d copa-server
```
- Or, deploy your own server by run source code
```
git clone https://github.com/taojy123/copa
cd copa/server
pip install -r requirements.txt
python manage.py migrate
python manage.py collectstatic --noinput
gunicorn -w 5 -b 0.0.0.0:80 copa.wsgi
```