GithubHelp home page GithubHelp logo

isabella232 / generate_directory_indexes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from puppetlabs/generate_directory_indexes

0.0 0.0 0.0 46 KB

Generate Apache-style directory indexes as static HTML files

Python 98.60% Makefile 1.40%

generate_directory_indexes's Introduction

Apache-style Directory Index Generator =======================

This script generates Apache-style directory indexes as static HTML files. The primary use case is indexing files in an AWS S3 bucket so that they can be navigated like files served by an Apache web server.

Usage:

generate_directory_indexes.py [--help|-h]

generate_directory_indexes.py [--file-metadata FILE_METADATA]

[--metadata-delimiter METADATA_DELIMITER] [--noop] [--verbose] path

positional arguments:

path Top directory for writing index files.

optional arguments:
--file-metadata FILE_METADATA, -f FILE_METADATA

A file containing data describing the tree to index.

--metadata-delimiter METADATA_DELIMITER, -m METADATA_DELIMITER

Character which seperates fields in the file metadata. Default is a semicolon.

--noop, -n Only print files to be created without writing them to

disk

--verbose, -v Verbose output. Repeat (up to -vvv) for more verbosity --help, -h show this help message and exit

Developing

  1. Make sure you're familiar with Python setuptools/distutils
  2. Create a ~/.pypirc file if you don't already have one. Add the "artifactory" repo to the pypirc. Use your username.
[distutils]
index-servers =
  artifactory

[artifactory]
repository: https://artifactory.delivery.puppetlabs.net/artifactory/api/pypi/pypi
username: my.username
  1. From your project root, run the following command to upload the package. Make sure the setup script works
python setup.py sdist upload -r artifactory
  1. To resolve packages using pip, add the following to ~/.pip/pip.conf
[global]
index-url = https://artifactory.delivery.puppetlabs.net/artifactory/api/pypi/pypi/simple

generate_directory_indexes's People

Contributors

e-gris avatar mwaggett avatar sarameisburger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.