Skip to main content

CloudyDaze

bunch of usefull scripts for managing your cloud

please note that these use the most excellent credstash library for python, you will need to setup your boto configuration for AWS for this to work.

credstash setup


mySG.py

Tool to add your current IP address to the security group permissions.

Please add the following patameter to your ~/.aws/config file

mysg=sg_...

help

$ ./mySG.py --help
usage: mySG.py [-h] [-p PROFILE] [-u URL] [-v] {enable,granted,myip,replace,revoke,args} ...

positional arguments:
  {enable,granted,myip,replace,revoke,args}
                        operations
    enable
    granted
    myip
    replace
    revoke
    args                print the values for the args

optional arguments:
  -h, --help            show this help message and exit
  -p PROFILE, --profile PROFILE
                        default=default
  -u URL, --url URL     default=https://api.ipify.org?format=json
  -v, --verbose         verbose logging

myEC2.py

simple tool to start or stop ec2 instances

help

$ ./myEC2.py --help
usage: myEC2.py [-h] [-p PROFILE] [-v] {list,start,stop,args} ...

positional arguments:
  {list,start,stop,args}
                        operations
    list
    start
    stop
    args                print the values for the args

optional arguments:
  -h, --help            show this help message and exit
  -p PROFILE, --profile PROFILE
                        default=default
  -v, --verbose         verbose logging

mySSH.py

MySSH class for executing commands using SSH in Python

help

$ ./mySSH.py -h
usage: mySSH.py [-h] [-H HOSTNAME] [-k KEY] [-p PASSWORD] [-P PORT] [-t TIMEOUT]
                [-u USERNAME] [-v]
                {execute,args} ...

positional arguments:
  {execute,args}        operations
    execute
    args                print the values for the args

optional arguments:
  -h, --help            show this help message and exit
  -H HOSTNAME, --hostname HOSTNAME
  -k KEY, --key KEY     ssh key path
  -p PASSWORD, --password PASSWORD
  -P PORT, --port PORT  default=22, type=int
  -t TIMEOUT, --timeout TIMEOUT
                        connect timeout seconds, default=5, type=int
  -u USERNAME, --username USERNAME
  -v, --verbose         verbose logging


mySCP.py

MySCP class for moving files using SSH in Python

help

$ ./mySCP.py -h
usage: mySCP.py [-h] [-H HOSTNAME] [-k KEY] [-p PASSWORD] [-P PORT] [-t TIMEOUT]
                [-u USERNAME] [-v]
                {get,put,args} ...

positional arguments:
  {get,put,args}        operations
    get
    put
    args                print the values for the args

optional arguments:
  -h, --help            show this help message and exit
  -H HOSTNAME, --hostname HOSTNAME
  -k KEY, --key KEY     ssh key path
  -p PASSWORD, --password PASSWORD
  -P PORT, --port PORT  default=22, type=int
  -t TIMEOUT, --timeout TIMEOUT
                        connect timeout seconds, default=5, type=int
  -u USERNAME, --username USERNAME
  -v, --verbose         verbose logging

acknowledgements

code graciously borrowed from StaSh for Pythonista

Metadata

Release files for CloudyDaze 1.5

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

Source distribution (sdist)

Source distribution for CloudyDaze 1.5
File Size Uploaded Provenance
CloudyDaze-1.5.tar.gz 10.3 kB Without provenance Details

Release files / CloudyDaze-1.5.tar.gz

Download URL CloudyDaze-1.5.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5fd26929825c0313caa9ba757c357111a708889cfa9ef44e5abd2ad69da4ddb5
BLAKE2b-256 checksum
How to use checksums
4335fd5f475065f8933e8a6f417fc68c516d1cfe6e245b904950e46ec9ab3701
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.16

Security for CloudyDaze 1.5

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.

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