semvec/pypi-packages huggingface dataset:
easy-publish 0.0.12
A simple abstraction for publishing files as blog posts.
License: MIT
Requires Python: >=3.6.0

# Easy Publish

Easy publish is a Python library that provides a simple abstraction for publishing text files as blog posts. 

## Installation

Requires: Python >= 3.6

`python3 -m pip install easy-publish`


## Usage

To use easy publish import and call the `generate_posts` function pointing it to the directory your files are located in. The `generate_posts` function returns an object that has two useful class variables: `metadata` and `posts`. `metadata` is a list of metadata about each of your posts(the "Including Markdown" section explains how to include metadata). `posts` is a list of post objects that include metadata and post content.

Below is a simple flask app with jinja templating that utilizes easy publish and the `metadata`/`post` objects. While this example uses flask/jinja, any web framework/templating engine should work with easy publish.

#### app.py
```
from flask import Flask, render_template
from easy_publish import generate_posts

app = Flask(__name__)
posts = generate_posts("~/path/to/blogposts")

@app.route("/blog")
def blog():
  return render_template("blog.html", metadata=posts.metadata)

@app.route("/blog/<p>")
def blogpost(p):
  return render_template("post.html", post=posts.posts[p])
```

#### blog.html
```
{{% for post in metadata %}}
  <li>{{ post.title }}</li>
  <li>{{ post.date }}</li>
  <li>{{ post.tags }}</li>
  <li>{{ post.author }}</li>
{{% endfor %}}
```

#### post.html
```
<h1>{{ post.title }}</h1>
<h4>{{ post.date }}</h1>
<h4>{{ post.author }}</h1>
<p>{{ post.content }}</p>
```

## Including Metadata

Easy publish expects text files to have a section at the top denoting metadata information. The section should be in the following format:

```
~
title: title would go here
date: date would go here
tags: tags, would, go, here (comma separated)
author: author would go here
~
```
The parser looks for information in between the ~'s and strips it out into the metadata. It's on the list of TODO's to add different ways to include metadata. 


## Contributing

Currently in heavy development and not a stable interface. Feel free to contribute ideas as issues or as a pull request.

## License

MIT
pgo 0.2.2
Profile guided optimization for Python extensions
License: MIT
Requires Python: >=3.6

![Version 0.2.2](https://img.shields.io/badge/version-0.2.2-blue?style=flat-square)
![Python 3.6+](https://img.shields.io/badge/python-3.6%2B-blue?style=flat-square)
![License: MIT](https://img.shields.io/badge/license-MIT-blue?style=flat-square)

[![tests status](https://img.shields.io/github/workflow/status/esoma/pgo/test?label=tests&style=flat-square)](https://github.com/esoma/pgo/actions/workflows/test.yml)
[![coverage](https://img.shields.io/codecov/c/github/esoma/pgo?style=flat-square)](https://app.codecov.io/gh/esoma/pgo)
[![quality](https://img.shields.io/lgtm/grade/python/github/esoma/pgo?label=quality&style=flat-square)](https://lgtm.com/projects/g/esoma/pgo/alerts/?mode=tree)

`pgo` brings easy and unobtrusive profile guided optimization to Python
extensions.

Work in progress.

Copyright 2021 Erik Soma

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
wolframalpha-cli 1.1.0
Command Line Interface to run queries on WolframAlpha
License: MIT
Keywords: wolframalpha cli python utility

# WolframAplha CLI

Command Line Interface to run queries on [WolframAlpha](http://www.wolframalpha.com)

## Usage

```shell
usage: wa [-h] [-q] [--appid APPID] QUERY

WolframAlpha cli

positional arguments:
  QUERY          Query to search in WolframAlpha (group multiple words with quotes)

optional arguments:
  -h, --help     show this help message and exit
  -q             Quiet, only print the results
  --appid APPID  WolframAlpha AppID - If not informed will be asked and saved in a file for future use
```