Skip to main content

Practical 7: Secure State Management Workflows

This package implements Practical 7:

Implementing secure state management workflows utilizing server-side sessions, browser cookies, and encrypted password hashing configurations.


🚀 How to Install on Any Machine via Pip

pip install yajvendra-prac7

⚡ How to Get and Use the Code on Any System

Run:

prac7 --get

or simply:

prac7 get

This instantly generates practical7_secure_auth.py in your current working directory!

2. Run Automated Verification Workflow

prac7

Simulates the entire workflow:

  • User Registration (Password salted & hashed using PBKDF2:SHA256)
  • Unauthorized Route Access Rejection (401)
  • User Login & Server-Side Session Generation
  • Secure Cookie Configuration (HttpOnly, SameSite, Secure)
  • Authorized State Access
  • User Logout & Session Invalidation
  • Post-Logout Access Verification

3. Start Live Authentication Server

prac7 --server

Launches server on http://127.0.0.1:5001.

4. Print Full Source Code to Terminal

prac7 --show

🛠️ How to Build and Upload to PyPI

  1. Navigate to this folder:

    cd practical7_secure_state_management
    
  2. Build the package:

    python -m build
    
  3. Upload to PyPI:

    twine upload dist/*
    

Metadata

Release files for yajvendra-prac7 0.1.0

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

Source distribution (sdist)

Source distribution for yajvendra-prac7 0.1.0
File Size Uploaded Provenance Actions
yajvendra_prac7-0.1.0.tar.gz 4.2 kB Without provenance Details for yajvendra_prac7-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yajvendra-prac7 0.1.0
File Interpreter ABI Platform Actions
yajvendra_prac7-0.1.0-py3-none-any.whl Python 3 none any Details for yajvendra_prac7-0.1.0-py3-none-any.whl

Total release size: 8.9 kB

Release files / yajvendra_prac7-0.1.0.tar.gz

Download URL yajvendra_prac7-0.1.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bb9901186f9f5a5416b2f65e4185773640f944b90732a5cdfe88865883fc000c
BLAKE2b-256 checksum
How to use checksums
f0acde9c5da609d6811dd0fb685740b0c1b203c22fa938f020345ca1020bbcd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / yajvendra_prac7-0.1.0-py3-none-any.whl

Download URL yajvendra_prac7-0.1.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5985503d92b317189c26e6ec5c44323d41bc8e26484488f5d85780ba5c4f8c9c
BLAKE2b-256 checksum
How to use checksums
100922b3acb63ae345b53dfc8815356919d9f0f81c6c45fd4cc616e1c393b20c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for yajvendra-prac7 0.1.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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