mmCIF Dictionary Site Generator
Project description
mmCIF Dictionary Site Generator
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
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
mmcif.sitegen-0.25.tar.gz
(32.7 kB
view details)
File details
Details for the file mmcif.sitegen-0.25.tar.gz
.
File metadata
- Download URL: mmcif.sitegen-0.25.tar.gz
- Upload date:
- Size: 32.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a9e5aa133c797a9d7b3bf15f7398a2fd777041b8d8afd9049c467b4db4a9e0a |
|
MD5 | d259fbbc62a709f39cabd81a97a4fad8 |
|
BLAKE2b-256 | aa76834c03f7bbdb8451f0cdb90a973dfbae98421fd8654cb961df90650e8595 |