Skip to main content

Fetch website dependencies locally for offline HTTP serving

Project description

offliner

Fetch a page’s assets into a folder so you can serve it offline with any static HTTP server.

Install

pip install offliner
python -m playwright install chromium

Usage

offliner --verbose https://example.com/
offliner -d ./my-offline https://example.com/
python -m offliner -h

Publish to PyPI (maintainers)

From this directory (python/):

  1. Account & token — Create an account on PyPI and an API token (scope: whole account or project offliner).

  2. Build (use a clean env or pip install --upgrade build twine):

    cd python
    python -m build
    

    This produces dist/offliner-<version>-py3-none-any.whl and dist/offliner-<version>.tar.gz.

  3. Upload (TestPyPI first is optional but recommended):

    # TestPyPI
    twine upload --repository testpypi dist/*
    
    # Production PyPI
    twine upload dist/*
    

    When prompted, username is __token__ and password is your API token (pypi-...).

  4. Bump version in pyproject.toml before each new release; PyPI rejects re-uploading the same version.

Optional: configure ~/.pypirc with [pypi] and username = __token__ / password = pypi-... to skip typing the token each time.

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

offliner-0.0.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

offliner-0.0.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file offliner-0.0.1.tar.gz.

File metadata

  • Download URL: offliner-0.0.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for offliner-0.0.1.tar.gz
Algorithm Hash digest
SHA256 880cf5a1043c8b2921326226dbc405f3b07b80a8a9460775fea7fff9c298233b
MD5 14164cb77877d62b6e2bbc307bd595db
BLAKE2b-256 3ee3995925874fc3bce967d6d8f35a0ca623d65a5a56f053c37fed507bbbf9f3

See more details on using hashes here.

File details

Details for the file offliner-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: offliner-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for offliner-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b95e3eae1e7e2c65197a3a82cab69547dd60c9eba08e6fa62ba032c2688db7c
MD5 24aa7b59785fc8ed2d596e722043445b
BLAKE2b-256 f76f1dada9e42a4ad9938ac52e34b37d21dd35c2973ca6ac221b9d72a426da03

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