Skip to main content

Add your description here

Project description

siege-cli

siege-cli is a CLI tool for interacting with the Siege website. Currently, listing your projects and updating their information is supported.

Cookies

siege-cli requires your _siege_session and sometimes cf_clearance cookies to work. You might be asked to retrieve them from time to time, if a request gets denied because of them expiring.

In case you are being asked for a cf_clearance and it is not present in the cookie list, it is most likely okay to just create/overwrite the session.json file with {"cf_clearance":""} to suppress the warning. This can also be done by pressing Enter to the cf_clearance prompt without pasting anything.

Firefox

  • Open devtools with F12 or right click>Inspect
  • Switch to the Storage tab
  • In the devtools sidebar, select Cookies>https://siege.hackclub.com
  • Triple click the value of the respective cookie and copy it

Chromium

  • Open devtools with F12 or right click>Inspect
  • Switch to the Application tab
  • In the devtools sidebar, under the Storage group, select Cookies>https://siege.hackclub.com
  • Triple click the value of the respective cookie and copy it

Usage

py siege.py/siege.exe take subcommands: list - no other args needed, lists your Siege projects show - --id arg needed, shows info about one of your Siege projects matching the ID edit - --id arg needed, updates properties of your Siege project matching the ID according to the Update flags you pass:\

  • -t TITLE --title TITLE Project display name
  • -b DESC --description DESC Project description
  • -d LINK --demo LINK Link to the project's demo
  • -r LINK --repo LINK Link to the project's repository
  • -s PATH --screenshot PATH Local path from the cwd to the screenshot you want to upload
  • -x --remove-screenshot Flag for removing the current project screenshot
  • -w --hackatime HACKATIME_NAME Name of the hackatime project associated with this project

Installation

Note: for any pip packages, depending on your system you might need to use your normal package manager to install python packages, or pass --break-system-packages to pip. A venv can also be used.

For the first run, you will be asked to enter your Siege cookies. Read above for an explanation of that process.

Pyinstaller

  • Create and navigate to the directory you want siege-cli to reside in.
  • Download the siege.exe build from the release (git clone https://github.com/strawberry-p/siege-cli.git and cd siege-cli also works for these steps)
  • Run dist/siege/siege.exe list or siege.exe list to get started

Python

  • Create and navigate to the directory you want siege-cli to reside in.
  • Download the siege.py file from the repo or from the release (git clone https://github.com/strawberry-p/siege-cli.git and cd siege-cli also works for these steps)
  • Run py siege.py list to get started.

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

siege_cli-0.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

siege_cli-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file siege_cli-0.1.0.tar.gz.

File metadata

  • Download URL: siege_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for siege_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0e6ea051c9122e18fd79d0cac4a937c7d18c5a4ab0526a73ba0e62b674f3529c
MD5 fcefac1086407f1f8a2f18f3d60d3b76
BLAKE2b-256 55b1564a269c3ceaaa07cf0c3fc6a49b40c94287af885662cfda5eadc324f701

See more details on using hashes here.

File details

Details for the file siege_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: siege_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for siege_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d24535c1d74a5d32179e6ed785976ee0ff75d11c40540ae5a473129e1dd4189e
MD5 256c88e52f949234fc66a2de9f79080c
BLAKE2b-256 0c094925d9b7e7c739ea3806859912925b0512e382df5cd3e7a18001c809069b

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