Skip to main content

Allows submitting to the UMD Submit Server from the command line, without the Eclipse Plugin

Project description

umdsubmit

This package allows submitting to the UMD Submit Server from the command line, without the Eclipse Plugin.

Installation

You can install the package via pip:

pip install umdsubmit

Usage

After installing navigate to the root of the project directory in the terminal and run the command umdsubmit. Enter your UMD Directory ID and password as requested. Ensure that you run the command from the directory containing the .submit file for the project.

How It Works

  1. Initialization:

    • The umdsubmit command is executed, initiating the submission process.
  2. Zip Archive Creation:

    • The shutil.make_archive function is used to create a zip archive of the current working directory.
  3. File Reading - .submit:

    • The get_info function is called to gather necessary submission data.
    • This function reads the .submit file in the current directory and retrieves values associated with specified keys.
  4. CVS Account Retrieval:

    • The get_cvs_account function is called to obtain the CVS account.
    • If the .submitUser file exists, it is read to get the account information.
    • If the file doesn't exist, the auth function is triggered to authenticate the user.
  5. User Authentication (if needed):

    • The auth function prompts the user to enter their UMD Directory ID and password.
    • A POST request is made to the server to negotiate a one-time password.
    • The server's response is written to the .submitUser file and printed to the console.
  6. One-Time Password Retrieval:

    • The get_one_time_password function is called to retrieve a one-time password to authenticate with the submit server
  7. Submission:

    • A POST request is made to the submit URL with the zip file and the gathered data.
    • The server's response is printed to the console.

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

umdsubmit-1.3.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

umdsubmit-1.3.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file umdsubmit-1.3.1.tar.gz.

File metadata

  • Download URL: umdsubmit-1.3.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/23.0.0

File hashes

Hashes for umdsubmit-1.3.1.tar.gz
Algorithm Hash digest
SHA256 97b0ddd0a9bf876e3cae0d909ee93a1b471985bdef6904dde305c17bde6ad0b5
MD5 059f704df5f5b1501e198403dd6ca59a
BLAKE2b-256 e68ad759e54ef30b9e9f83bff3495f968bd5f31f60a5a4b41d3e237f676ef5b9

See more details on using hashes here.

File details

Details for the file umdsubmit-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: umdsubmit-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/23.0.0

File hashes

Hashes for umdsubmit-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd7224bc4df65676ec9015cff02f7e4a443d4b2a1d4c25cd37116bc3f6475088
MD5 62a35ebfc53181dff471917ff7ed3825
BLAKE2b-256 cc0fe1c1dced494d2de67c686ec8082ebf78bd4074c10be2f13fc70bf8b6bc3f

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