Skip to main content

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.

Release files for swp 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swp 1.0.1
File Size Uploaded
swp-1.0.1.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swp 1.0.1
File Interpreter ABI Platform
swp-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 20.7 kB

Release files / swp-1.0.1.tar.gz

Download URL swp-1.0.1.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7c5f8a63c073ac991ae3af65223f47d6a4bf320746a5227f8f767ca705e9fab4
BLAKE2b-256 checksum
How to use checksums
39bef3a4369db2305fc013331b2787534f480f46f28b0f21f4950553c6219a10
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / swp-1.0.1-py3-none-any.whl

Download URL swp-1.0.1-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
139742cb40c9489d0994c5f5b2bb015264c418deb1cccfed2dac2dd972178bd0
BLAKE2b-256 checksum
How to use checksums
c51d9faaf575d17d1d05ff40e5e95aec11ad68bc794d68bd02515c07140a650d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page