Skip to main content

mmCIF Dictionary Site Generator

Build Status

Introduction

This module contains a collection of utilities to generate HTML and image content for the mmCIF Resource Site

Installation

Install from PyPi using:

pip install mmcif.sitegen

To install from source, download the library source software from the project repository:

git clone  https://github.com/rcsb/py-mmcif_sitegen.git

cd py-mmcif_sitegen
pip install -e .

Optionally, run the test suite, using:

python setup.py test

or

tox

A command line entry point with the following options is provided to generate html and images:

 site_generator_cli --help

usage: SiteGeneratorExec.py [-h] [--web_gen_path WEB_GEN_PATH]
       [--web_file_assets_path WEB_FILE_ASSETS_PATH] [--html] [--images] [--test_mode_flag]

optional arguments:
  -h, --help            show this help message and exit
  --web_gen_path WEB_GEN_PATH
                        Top path to website generated content
  --web_file_assets_path WEB_FILE_ASSETS_PATH
                        Top path for website source file assests
  --html                Generate HTML content
  --images              Generate image content
  --test_mode_flag      Test mode flag (default=False)

For example, the following script illustrates the steps required to materialize the dynamic content and integrate this with static files of the mmCIF resource site.

#!/bin/bash
cd /var/www
echo "# Cloning static content for mmCIF website"
git clone https://github.com/rcsb/mmcif_website.git
echo "# Cloning file assets for mmCIF website"
git clone https://github.com/rcsb/mmcif_website_file_assets.git
# ---
echo "# Generating image content"
/usr/local/bin/site_generator_cli --images \
  --web_gen_path /var/www/mmcif_website_generated \
  --web_file_assets_path /var/www/mmcif_website_file_assets
#
echo "# Generating site content"
/usr/local/bin/site_generator_cli --html   \
  --web_gen_path /var/www/mmcif_website_generated \
  --web_file_assets_path /var/www/mmcif_website_file_assets
#
echo "# Update search indices"
/var/www/mmcif_website/mmcif_cgi/swish/MakeIndices.sh

Release files for mmcif.sitegen 0.27.1

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

Source distribution (sdist)

Source distribution for mmcif.sitegen 0.27.1
File Size Uploaded
mmcif_sitegen-0.27.1.tar.gz 33.1 kB Details

Release files / mmcif_sitegen-0.27.1.tar.gz

Download URL mmcif_sitegen-0.27.1.tar.gz
Size 33.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b4196df201339f1ddba28d455b64b9430e212faaca68bf59ff6de552d9fa55a7
BLAKE2b-256 checksum
How to use checksums
a4df0188c3f282326f9095e5fc35e7e4f237e4ddb106e615bd655c8cc32705a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

0.27.1 This release

1 release file

0.27

1 release file

0.26

1 release file

0.25

1 release file

0.24

1 release file

0.23

1 release file

0.22

1 release file

0.21

1 release file

0.20

1 release file

0.10

1 release file

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