Skip to main content

static-wordpress

Python Package for Converting WordPress Installation to a Static Website.

build_Tests license status pypi_version supported_python_versions

Desktop Version

staticwordpress-gui

How to Install static-wordpress?

Windows Installer

We provide an exe file of staticwordpress for the convenice of users. Please download the latest version from release section.

Source Code

  • Clone or download this repository to your computer.
  • Create a virtual environment using python -m .venv venv
  • Navigate to the downloaded directory and then install all required dependencies using pip install -e .
  • Once all dependencies are met, then start staticwordpress by typing staticwordpress on commandline.

Development

This package is available at pypi and you can install it with pip install staticwordpress command. It will also install required additional libraries/Python Packages automatically.

Once installed, you can implement customized workflows. Here is an example of post processing simply-static-zip file.

import logging

from staticwordpress.core.workflow import Workflow
from staticwordpress.core.constants import SOURCE, HOST

# enable logging for all functions.
logging.basicConfig(
        format="%(asctime)s - %(levelname)s - %(message)s",
        level=logging.DEBUG,
        stream=sys.stdout,
)

swp = Workflow()
swp.create_project(
        project_name_="simply-static-zip-deploy",
        wp_user_=env_wp_user, # your wordpress username
        wp_api_token_=env_wp_api_token, # wordpress xml api token
        src_url_=env_src_url, # source url where WordPress is hosted
        dst_url_=env_dst_url, # destination url where you want to host Static version
        output_folder_=env_output, # Output folder location, where processed files will be saved
        src_type_=SOURCE.ZIP, # Data Source e.g. ZIP file from Simply Static WordPress Plugin
        host_type_=HOST.NETLIFY, # Host, where you want to deplyo your website.
    )

swp.download_zip_file()
swp.setup_zip_folders()
swp.add_404_page()
swp.add_robots_txt()
swp.add_redirects()
swp.add_search()

Documentation

Detailed documentation of all features is available at staticwordpress documentation.

Contribute

Pull Requests, Feature Suggestions, and collaborations are welcome.

ICONS

Icons used in this project are obtained from Google Fonts Material Symbols

About Us

This work is a collaborative effort of seowings, and serpwings.

Metadata

Release files for staticwordpress 0.0.7

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

Source distribution (sdist)

Source distribution for staticwordpress 0.0.7
File Size Uploaded Provenance
staticwordpress-0.0.7.tar.gz 76.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for staticwordpress 0.0.7
File Interpreter ABI Platform
staticwordpress-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 194.6 kB

Release files / staticwordpress-0.0.7.tar.gz

Download URL staticwordpress-0.0.7.tar.gz
Size 76.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9299881a10eaa473601e0cf173f19aabbf72791258596b2ed8b579e9808fd56e
BLAKE2b-256 checksum
How to use checksums
40255929dc95ff3cc3169ec35706d7c30c344908394355a101f4b771b5c4fe61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / staticwordpress-0.0.7-py3-none-any.whl

Download URL staticwordpress-0.0.7-py3-none-any.whl
Size 117.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8238b0c64050687655d460b25a44755187de32f7d5ca9134d1ac8b22be55d74d
BLAKE2b-256 checksum
How to use checksums
450c0d963fccd1938c5cf84569efb82e67da1765ee72648a9e6f50fc84c53770
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Security for staticwordpress 0.0.7

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.

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