PyCharmSync
A simple tool for uploading changed project files to a remote host, automatically.
Paid versions of PyCharm can be set up to upload project files
as you change them locally. PyCharmSync aims to do just that
using the sshpass and the scp command on Unix based machines.
PyCharmSync will watch a project directory, track the files in
the directory and then upload the changed versions automatically
based on settings set in an .env file in your root project
directory.
Install
pip install PyCharmSync
.env Example
Here are some settings for a project named project_name on a
raspberry pi. The .env file should be consumable by configparser.ConfigParser
[SSH]
HOST = 10.0.0.200
USER = pi
PASS = raspberry
PROJECT_ROOT = /home/pi/project_name
The settings laid out above would map to the following command:
sshpass -p "PASS" scp FILEPATH USER@HOST:PROJECT_ROOT
or
sshpass -p "raspberry" scp /home/user/project_name/some_file.py pi@10.0.0.200:/home/pi/project_name
Usage Example
Once you have your .env file configured in your project's root
directory all you need to do is import ProjectSync from PyCharmSync
and then run it's main method:
from PyCharmSync import ProjectSync
ProjectSync.main()
If you are not running the main method from your project's root
directory you need to pass a cwd to the main method.
from PyCharmSync import ProjectSync
ProjectSync.main('/home/user/project_name')
Metadata
Release files for PyCharmSync 0.0.2
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 | |
|---|---|---|---|---|
| PyCharmSync-0.0.2.tar.gz | 2.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyCharmSync-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / PyCharmSync-0.0.2.tar.gz
| Download URL | PyCharmSync-0.0.2.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
834eaba5dceee101f01fb59a6220fe8723dde3c0545fe36927a5a701d249f95c
|
|
BLAKE2b-256 checksum How to use checksums |
f80070d3309702f6ae9d564926f65f77b518c92f592d2bfbc2f405d6245e8df7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.2
|
Release files / PyCharmSync-0.0.2-py3-none-any.whl
| Download URL | PyCharmSync-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c675df53d829330c4af8d2760e1236853687e8a5568ae67ec85bf7a29c1362c0
|
|
BLAKE2b-256 checksum How to use checksums |
50d639a760ea2ff18cdbe1597beb8b95eb87d9c66dda06f14d4d034fe363924a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.2
|
Security for PyCharmSync 0.0.2
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.