semvec/pypi-packages huggingface dataset:
cheat-ext 0.1
Cheat Extension
License: MIT

cheat-ext
=========

|Build Status| |Coverage Status|

An extension of `cheat <https://github.com/chrisallenlane/cheat>`__
Provide simple methodology to extends cheatsheets

Install
-------

::

    pip install cheat-ext

Usage
-----

Download cheatsheets from github
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

| This command will clone github respository to
  ``~/.cheat/.ext/author_repository``
| and will also add symbolic link from ``~/.cheat/cmd`` to
  ``~/.cheat/.ext/author_repository/cmd``

::

    # installed cheatsheets from github repository
    cheat-ext install chhsiao90/cheatsheets-java
    # then use cheat to display the cheatsheet defined in the cheatsheets repository
    cheat cmd

Available cheatsheets
---------------------

-  `chhsiao90/cheatsheets-java <https://github.com/chhsiao90/cheatsheets-java>`__
   : Cheatsheets for Java

.. |Build Status| image:: https://travis-ci.org/chhsiao90/cheat-ext.svg?branch=master
   :target: https://travis-ci.org/chhsiao90/cheat-ext
.. |Coverage Status| image:: https://coveralls.io/repos/github/chhsiao90/cheat-ext/badge.svg?branch=master
   :target: https://coveralls.io/github/chhsiao90/cheat-ext?branch=master
django-brokenlinks 0.1.1
reusable django app to log crawlers hitting many 404 pages.
License: MIT
Keywords: django brokenlinks

Django Brokenlinks
==================

log brokenlinks to logfile and config fail2ban to ban crawlers hitting many 404 pages.
 
Requirements
------------

`django-appconf`


Installation
------------

::

    $ pip install django-brokenlinks


Setup
-----

1. Add ``'brokenlinks'`` to INSTALLED_APPS
2. Add ``'brokenlinks.middleware.BrokenLinkEmailsMiddleware'`` to ``MIDDLEWARE_CLASSES``
3. Set the ``BROKENLINKS_LOG_PATH``
4. After change in brokenlinks configs run ``manage.py createbrokenlinksconfs`` once and use the result conf-files with fail2ban 
 
your settings.py will look like below:


    INSTALLED_APPS = (
        # ...
        'brokenlinks',
        # ...
    )

    MIDDLEWARE_CLASSES= (
        'brokenlinks.middleware.BrokenLinkEmailsMiddleware',
        # ...
    )
    
    BROKENLINKS_LOG_PATH = '/path/to/brokenlinks.log'


then config fail2ban to use it


Author
-----

* w.Tayyeb
certbot-s3front 0.2.0
S3/CloudFront plugin for Certbot client
License: MIT
Keywords: certbot,cloudfront,s3

## S3/CloudFront plugin for [Certbot](https://certbot.eff.org/) client

Use the certbot client to generate and install a certificate to be used with
an AWS CloudFront distribution of an S3 bucket.

### Before you start

Follow a guide like this one [https://docs.aws.amazon.com/gettingstarted/latest/swh/website-hosting-intro.html](https://docs.aws.amazon.com/gettingstarted/latest/swh/website-hosting-intro.html)
to use S3 and CloudFront for static site hosting.

Once you are done you should have:

- A domain pointing to a CloudFront distribution that will use an S3 bucket for origin.
- Both HTTP and HTTPS traffic are enabled in the CloudFront Distrubtion. This is important for certificate validation, at least while you get your certificate.
- An IAM policy with the permissions needed for this plugin. A [sample policy](sample-aws-policy.json) has been provided.

Note: If you're setting up both an apex and a `www.` domain, they'll have a respective S3 bucket each. You'll need to update the IAM policy to include access to both buckets.

### Setup

1. Install the certbot client followin the instructions here [https://certbot.eff.org/](https://certbot.eff.org/)
1. Install the certbot-s3front plugin

  ```
  pip install certbot-s3front
  ```

### How to use it

To generate a certificate and install it in a CloudFront distribution:

```bash
AWS_ACCESS_KEY_ID="REPLACE_WITH_YOUR_KEY" \
AWS_SECRET_ACCESS_KEY="REPLACE_WITH_YOUR_SECRET" \
certbot --agree-tos -a certbot-s3front:auth \
--certbot-s3front:auth-s3-bucket REPLACE_WITH_YOUR_BUCKET_NAME \
[ --certbot-s3front:auth-s3-region your-bucket-region-name ] #(the default is us-east-1, unless you want to set it to something else, you can delete this line) \
[ --certbot-s3front:auth-s3-directory your-bucket-directory ] # (default is "") \
-i certbot-s3front:installer \
--certbot-s3front:installer-cf-distribution-id REPLACE_WITH_YOUR_CF_DISTRIBUTION_ID \
-d REPLACE_WITH_YOUR_DOMAIN
```

Follow the screen prompts and you should end up with the certificate in your
distribution. It may take a couple minutes to update.


### Automate renewal

To automate the renewal process without prompts (for example, with a monthly cron), you can add the certbot parameters `--renew-by-default --text`
sqlalchemy-hilo 0.1.2
HiLo primary key generators for sqlalchemy
License: MIT
Keywords: generator hilo sql sqlalchemy

SQLAlchemy HiLo PK Generator
============================

There are two flavors of the HiLo generator, ``HiLoGenerator`` and
``RowPerTableHiLoGenerator``. ``HiLoGenerator`` will create a single
column table to keep track of the ``hi`` value:

.. code:: sql

    CREATE TABLE single_hilo (
        next_hi BIGINT NOT NULL
    )

``RowPerTableHiLoGenerator`` will create a two column table to keep
track of the ``hi`` value per table per row:

.. code:: sql

    CREATE TABLE row_per_table_hilo (
            table_name VARCHAR(255) NOT NULL,
            next_hi BIGINT NOT NULL,
            PRIMARY KEY (table_name)
    )

You can use them in your models like any other ``Sequence``:

.. code:: python

    class Entity(Base):

        id = Column(BigInteger(), HiLoGenerator(), primary_key=True)
        ...

or

.. code:: python

    class Entity(Base):

        id = Column(BigInteger(), RowPerTableHiLoGenerator(), primary_key=True)
        ...