semvec/pypi-packages huggingface dataset:
mason 0.1.0
Python SQL query generation without the ORM.
License: MIT

Mason
====

.. image:: https://travis-ci.org/vail130/mason.svg?branch=master

Mason is a nice, light-weight, SQL query builder. It lets you use objects instead of SQL strings without
having an ORM take over your database model.

Example
-------
.. code-block:: python

    # Annoying :/
    query = """
        SELECT purchases.id,
            purchases.product_name,
            (purchases.product_price)::NUMERIC(10, 2),
            (purchases.datetime_purchased)::DATE
        FROM purchases
        INNER JOIN users ON purchases.purchaser_id = users.user_id
        WHERE purchases.datetime_purchased BETWEEN %(start)s AND %(end)s
            AND (purchases.purchaser_id = %(user_id)s OR purchases.purchaser_id IS NULL)
        ORDER BY purchases.datetime_purchased ASC
        LIMIT 10
        OFFSET 10
    """

    # Convenient :)
    from mason import Table, Param, SELECT, AND, OR, DATE, NUMERIC

    purchases = Table('purchases')
    users = Table('users')
    user_id = Param('user_id')
    start = Param('start')
    end = Param('end')

    query = str(
        SELECT(purchases.id, purchases.product_name,
               NUMERIC(purchases.product_price, 10, 2),
               DATE(purchases.datetime_purchased))
            .FROM(purchases)
            .INNER_JOIN(users.ON(purchases.purchaser_id == users.user_id))
            .WHERE(AND(purchases.datetime_purchased.BETWEEN(start).AND(end),
                       OR(purchases.purchaser_id == user_id,
                          purchases.purchaser_id.IS_NULL)))
            .ORDER_BY(purchases.datetime_purchased.ASC)
            .LIMIT(10)
            .OFFSET(10)
    )

Install
-------
.. code-block:: sh

    pip install mason

Develop
-------
.. code-block:: sh

    cd path/to/repos
    git clone git@github.com:vail130/mason.git
    cd mason
    mkvirtualenv mason
    pip install -r requirements.txt
    make test
pelican-resume 0.1.0
Easily generate customizable PDF resumes from Pelican pages
License: MIT
Keywords: pelican markdown blog resume pdf

Introduction
============
[![Build Status](https://travis-ci.org/cmenguy/pelican-resume.svg?branch=master)](https://travis-ci.org/cmenguy/pelican-resume)

This is **pelican_resume**, a Pelican plugin enabling automatic PDF resume generation for one of your Pelican pages.
The main benefit is that you only need to maintain a single Markdown version of your resume - the corresponding
HTML and generated PDF are completely automated so you can showoff your awesome resume both online and physically.

It allows you write your own resume style, or use one of the styles provided by this plugin.

Installation
============

Installing is easy, simply run:

    pip install pelican-resume

Alternatively, you can also clone this repository and install it manually:

    git clone git@github.com:cmenguy/pelican-resume.git
    python setup.py install

In **pelicanconf.py** you need to update your plugins to inclue **pelican_resume**:

    PLUGINS = [
        # ...
        "pelican_resume",
        # ...
    ]

Settings
========

You can customize the behavior of the plugin by adding the variables below to your **pelicanconf.py**.
For simple usage, the default values should work but will look for a specific input file and produce a specific PDF name.

Setting name | Default value | Usage
--- | --- | ---
`RESUME_SRC` | pages/resume.md | Path to your Markdown resume page (relative to your `PATH` variable).
`RESUME_PDF` | pdfs/resume.pdf | Path to the generated PDF output (relative to your `OUTPUT_PATH` variable).
`RESUME_CSS_DIR` | *<module-install-path>/static/css* | Path to the directory containing your resume CSS files.
`RESUME_TYPE` | moderncv | Type of resume to use. Has to match one of the CSS filenames under `RESUME_CSS_DIR`.
`RESUME_PANDOC` | pandoc | Path to your `pandoc` command. If `pandoc` is in your `PATH`, then it can be left as default.
`RESUME_WKHTMLTOPDF` | wkhtmltopdf | Path to your `wkhtmltopdf` command. If `wkhtmltopdf` is in your `PATH`, then it can be left as default.

Usage
=====

Once you have the plugin properly configured, it will generate a PDF version of your resume automatically under the
`RESUME_PDF` location everytime you run `pelican content`.

It can then easily be embedded into your Pelican website by referencing that location - thus ensuring your visitors
can download the latest version of your resume which is consistent with your Markdown file.

Contributing
============

[Contributing Guidelines](CONTRIBUTING.md)