Skip to main content

PyCharmSync is a simple tool for uploading changed project files to a remote host, about as soon as they change.

Project description

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')

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

PyCharmSync-0.0.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyCharmSync-0.0.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file PyCharmSync-0.0.2.tar.gz.

File metadata

  • Download URL: PyCharmSync-0.0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for PyCharmSync-0.0.2.tar.gz
Algorithm Hash digest
SHA256 834eaba5dceee101f01fb59a6220fe8723dde3c0545fe36927a5a701d249f95c
MD5 9320a5c5a56a0240c418fe8cf5d9e2b3
BLAKE2b-256 f80070d3309702f6ae9d564926f65f77b518c92f592d2bfbc2f405d6245e8df7

See more details on using hashes here.

File details

Details for the file PyCharmSync-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: PyCharmSync-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for PyCharmSync-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c675df53d829330c4af8d2760e1236853687e8a5568ae67ec85bf7a29c1362c0
MD5 f4f7b8698a4e9983e0f60441b53e904f
BLAKE2b-256 50d639a760ea2ff18cdbe1597beb8b95eb87d9c66dda06f14d4d034fe363924a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page