Skip to main content

Simple components sharing tool

Project description

SWAP

Simple components sharing tool

Installation

pip install swp

Optionnal dependencies

# Linux
apt install tree

# MacOS
brew install tree

Documentation

Swapfile

swap.yaml example:

git@github.com:mathix420/pylone.git:
    # name: local_path:remote_path@optionnal_branch_or_commitID
    pylone_utils: utils:pylone/utils

git@github.com:vuejs/ui.git:
    vue_ui: components/vue_ui:src/components

Commands

  • swp init Will guide you for creating a new config file.
  • swp tree Will show you the path structure of remotes.
  • swp sync Will by directionnal update of tracked modules/files.
  • swp add Will add the specified path to the swapfile.
  • swp rm Will remove the specified path from the swapfile.
  • swp get Will pull a module/file from a specified remote URL and add it to the swapfile.

More detailed documentation is available here

As swp sync will push local updates to remote, I recommand you to fork repositories like vuejs/ui to have write rights on thems.

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

swp-1.0.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

swp-1.0.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file swp-1.0.1.tar.gz.

File metadata

  • Download URL: swp-1.0.1.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for swp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7c5f8a63c073ac991ae3af65223f47d6a4bf320746a5227f8f767ca705e9fab4
MD5 bb5b72657e9b232639c24fab6e855284
BLAKE2b-256 39bef3a4369db2305fc013331b2787534f480f46f28b0f21f4950553c6219a10

See more details on using hashes here.

File details

Details for the file swp-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: swp-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for swp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 139742cb40c9489d0994c5f5b2bb015264c418deb1cccfed2dac2dd972178bd0
MD5 db155e4dbc652071b1e3da4fd1409fd6
BLAKE2b-256 c51d9faaf575d17d1d05ff40e5e95aec11ad68bc794d68bd02515c07140a650d

See more details on using hashes here.

Supported by

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