For clipboard copy/paste remote action ;-)
Project description
copypastor
Copy & paste your stuff between devices, simple and fast way. Safely share your clipboard.
Getting Started
These instructions will get you a copy of the project up and running on your local machine.
tldr: go to Installing & HOW MAY I USE IT?
Prerequisites
You need at least Python3 - that's all. Rest is in requirements.txt
(installed automatically).
Oh, one more thing: *nix systems only (including MacOS), I don't work with Windows so... maybe you could add it?
And one more - your devices have to be in the same network.
Installing
-
pip3 install copypastor
(recommended) -
clone code &
pip3 install .
(in app root directory) -
clone code &
python3 setup.py install
(little deprecated)
Configuration
Default config after installation is your $HOME location, usually:
/home/yourmom/.config/copypastor/config.py
This is standard python config, you can change there things like:
- SERVER_PORT
- SERVER_HOST
- REMOTE_PORT
- REMOTE_HOST
- AUTH_KEY (currently not ciphered)
and also key bindings:
- ACTIVATE_CLIENT -> KeyCode(char='c') -> to some other [key combination is allowed]
- ACTIVATE_SERVER -> KeyCode(char='s') -> to some other [key combination is allowed]
Deployment (CLI usage)
copypastor is cli-app-only, dead simple. After installing just try commands below.
One important thing to remember: you need to start it where your X's are (or EXPORT DISPLAY
them)
copypastor
- running default mode, you can choose between client/server mode by (default) keys 'C' or 'S'copypastor --server
- server mode only, listening on port and waiting for connectioncopypastor --client
- client mode only, connecting to specified host ($HOME/.config/copypastor/config.py)copypastor --debug
- just like default but with more CLI infocopypastor --help
- not important at all ;)copypastor --version
- in case I would ever bump it up
HOW MAY I USE IT?
(how author is using it)
On 1st device (let's say a Ubuntu laptop) I'm starting in CLI:
copypastor --server to run server-mode
- Now copy some text on this Ubuntu to system clipboard (CTRL+C somewhere:
"has logged off"
)
On the other one (let's say a Macbook) I'm starting in CLI:
copypastor --client to run client-mode, then paste from clipboard and... voilà.
I've just pasted this text from Ubuntu clipboard.
[extra stuff]
OR (even better, extremely ergonomic):
- Create system/app key shortcut bind so you can paste it fast anywhere, for ex. iCanHazShortcut
TODO:
- DotEnv instead standard config.py
- Threads for app modes (so you could easy change it while running)
- Pathlib for in-place paths instead current import construction
- Securing secrets (connection token)
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Dawid Deręgowski - currently the only one - Venomen
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
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
File details
Details for the file copypastor-1.0.3.tar.gz
.
File metadata
- Download URL: copypastor-1.0.3.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 099a9339a62e3f95bb509423f23279b7bdfb1ebd22dd98c0553d3cd07e949c8d |
|
MD5 | 2717e790996965cc8890fef9a5249fa5 |
|
BLAKE2b-256 | 95e67891c7c578884fa56a99b8c2919a1c87d427e8015c542cdba3ccaed73098 |
File details
Details for the file copypastor-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: copypastor-1.0.3-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46a55006be95c30cce126ac9ce3a1509f3a642f8d9ab3cd1b960a6137c23cab1 |
|
MD5 | 3bced08be2671d74a5af1d6673a72bef |
|
BLAKE2b-256 | 230198bd76370706b1625191932e8e5ef57cef7ff6c8becb22c29dc660e4f2ef |