Skip to main content

file-security-manager-akshitha

A Python security utility library developed for cloud-based file storage applications. Built as part of the Cloud Platform Programming module at NCI Dublin.

Installation

pip install file-security-manager-akshitha

Features

  • Generate unique file IDs using UUID
  • Hash file names using SHA-256
  • Get upload timestamps in ISO 8601 format
  • Validate file extensions against an allowed list
  • Validate file size (max 10MB)
  • Sanitize file names by removing unsafe characters
  • Build metadata dictionaries for DynamoDB storage

Usage

from file_security_manager import FileSecurityManager

# Generate a unique file ID
file_id = FileSecurityManager.generate_file_id()

# Validate file extension
is_valid = FileSecurityManager.is_valid_extension("report.pdf")  # True

# Sanitize a file name
safe_name = FileSecurityManager.sanitize_file_name("my file (1).pdf")  # my_file_1.pdf

# Build metadata for DynamoDB
metadata = FileSecurityManager.build_metadata(
    user_id="user-123",
    file_name="report.pdf",
    file_id=file_id,
    file_size=204800
)

Allowed File Types

.txt, .pdf, .png, .jpg, .jpeg, .gif, .csv, .docx, .xlsx, .mp4

Author

Akshitha Katakomula — NCI Dublin, MSc Cloud Computing 2026

Metadata

Release files for file-security-manager-akshitha 1.0.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 file-security-manager-akshitha 1.0.0
File Size Uploaded Provenance Actions
file_security_manager_akshitha-1.0.0.tar.gz 3.4 kB Without provenance Details for file_security_manager_akshitha-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for file-security-manager-akshitha 1.0.0
File Interpreter ABI Platform Actions
file_security_manager_akshitha-1.0.0-py3-none-any.whl Python 3 none any Details for file_security_manager_akshitha-1.0.0-py3-none-any.whl

Total release size: 7.3 kB

Release files / file_security_manager_akshitha-1.0.0.tar.gz

Download URL file_security_manager_akshitha-1.0.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a7c35178f3d2dd18a9ed1350049fa23c63606c59701de864dce26b30ae4e8856
BLAKE2b-256 checksum
How to use checksums
04e048642497b110d8fa70d28e02562a8a496152048bfd9cbf745a728248977d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / file_security_manager_akshitha-1.0.0-py3-none-any.whl

Download URL file_security_manager_akshitha-1.0.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
deb3d31b4cec094ce8f3467728f95bc33f1d852943586a4fdbf7c0b1406462a6
BLAKE2b-256 checksum
How to use checksums
82fdd85d70e5f4dca05ee9d7eb8275b00eea4d5ce9fbcc79a2c96e8b1a0484a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for file-security-manager-akshitha 1.0.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

1.0.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