s3urls
Parse and build Amazon S3 URLs
What it is and what it does
s3urls is a lightweight URL parser and builder for Amazon S3 URLs. It handles multiple S3 URL formats—virtual-hosted style (bucket in subdomain), path-style (bucket in path), and the s3:// scheme—and extracts or constructs the bucket name, object key, AWS region, and optional credential name. The package has no external dependencies and is simple to integrate into scripts or tools that need to normalize or manipulate S3 references.
The package is abandoned and has not been updated since its initial release in July 2018. While it has low install friction and a permissive license, the lack of maintenance means it will not adapt to any changes in AWS S3 URL conventions or Python language updates. It is suitable only for stable, legacy use cases where S3 URL parsing requirements are unlikely to change.
Use it for:
- Extract bucket and key from S3 URLs in log files or configuration to automate S3 resource discovery.
- Normalize S3 URLs from different sources into a canonical format for consistent downstream processing.
- Build S3 URLs programmatically with optional region and credential parameters for dynamic resource references.
- Parse s3:// scheme URIs with embedded credential names for local or testing environments.
- Convert between S3 URL styles (virtual-hosted vs. path-style) in migration or compatibility scripts.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parse and build Amazon S3 URLs in multiple formats, extracting or constructing bucket names, keys, regions, and optional credential names.
Yes, if you have a stable, legacy codebase that only needs basic S3 URL parsing and will not require updates. The package is simple, dependency-free, and permissively licensed. No, if you need active maintenance, support for new AWS features, or confidence that the code will work with future Python versions—the package is abandoned and has not been updated since 2018.
Install
s3urls on PyPI
pip
pip install s3urlsuv
uv add s3urlspoetry
poetry add s3urlsInstalling s3urls
Before you install
Package is abandoned (last release 2018-07-10, no commits tracked). Install friction is low and it has no runtime dependencies, but the lack of maintenance means it will not receive bug fixes or updates for Python or AWS API changes.
License in practice
MIT license is permissive; you may use, modify, and distribute this package freely with minimal restrictions.
Quickstart
from s3urls import parse_url, build_url
# Parse an S3 URL
parse_url('https://my-bucket.s3.amazonaws.com/my-key/')
# {'bucket': 'my-bucket', 'key': 'my-key/'}
# Build an S3 URL
build_url('s3', 'my-bucket', 'my-key/')
# 's3://my-bucket/my-key/'
Verify before relying
- Whether the package correctly handles all current S3 URL formats and edge cases, given it has not been updated since 2018.
- Whether parsing behavior is consistent across all documented S3 URL styles (virtual-hosted, path-style, s3:// scheme).
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.6.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,957 days since the last release |
| First released | |
| Downloads | 80,806/month — #14,269 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: s3urls-0.0.3-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
aws-cdk.aws-s3Defines AWS S3 buckets and related resources as…
permissive · top 15,000 on PyPI
s3pathS3Path provides a pathlib-like interface for…
permissive · top 5,000 on PyPI
cfnresponseSends response objects to AWS CloudFormation…
permissive · top 15,000 on PyPI
aws-error-utilsWraps botocore ClientError exceptions to…
permissive · top 15,000 on PyPI
mozilla-repo-urlsParses and processes Mozilla repository URLs,…
copyleft · top 5,000 on PyPI
fs-s3fsS3FS provides a PyFilesystem interface to…
permissive · top 15,000 on PyPI
django-s3-storageProvides Django file storage backends that read…
permissive · top 15,000 on PyPI
s3fss3fs provides a Python filesystem interface to…
permissive · top 100 on PyPI
git-remote-s3Enables Git to use Amazon S3 as a remote…
permissive · top 15,000 on PyPI
ada-urlParse, validate, and manipulate URLs according…
permissive · top 15,000 on PyPI