semvec/pypi-packages huggingface dataset:
newslynx-url 0.1.0
Tools for parsing, extracting, reconciling, and unshortening urls
License: MIT
Keywords: urls

newslynx-url
============

A newslynx-opinionated collection of utilities for dealing with urls.

Install
-------

::

    pip install newslynx-url

Test
----

requires ``nose``

::

    nosetests

Usage
-----

This module contains various methods that are used throughout
``newslnyx-core``. but the main functions are ``unshorten_url``,
``is_article_url``, and ``prepare_url``:

.. code:: python

    from newslynx_url import (
      unshorten_url, is_article_url, prepare_url
    )

    print unshorten_url('bit.ly/1j3SrUC')
    # http://towcenter.org/blog/tow-fellows-brian-abelson-and-michael-keller-to-study-the-impact-of-journalism/

    print is_article_url(
      'http://towcenter.org/blog/tow-fellows-brian-abelson-and-michael-keller-to-study-the-impact-of-journalism'
      )
    # True

    print is_article_url(
      'http://towcenter.org/blog/tow-fellows-brian-abelson-and-michael-keller-to-study-the-impact-of-journalism',
      pattern = r'.*towcenter\.org/blog/.*'
    )
    # True

    import re
    pattern = re.compile(r'.*towcenter\.org/blog/.*')
    print is_article_url(
      'http://towcenter.org/blog/tow-fellows-brian-abelson-and-michael-keller-to-study-the-impact-of-journalism',
      pattern = pattern
    )
    # True

    print prepare_url(
      'http://towcenter.org/blog/tow-fellows-brian-abelson-and-michael-keller-to-study-the-impact-of-journalism/?q=lfjad&f=lkfdjsal'
      )
    # http://towcenter.org/blog/tow-fellows-brian-abelson-and-michael-keller-to-study-the-impact-of-journalism
bittle 0.2.1
Simple library to help with bit manipulations.
License: MIT

bittle
======

Description
~~~~~~~~~~~

Bittle is a simple module to help me to things with bits.

Installation
~~~~~~~~~~~~

New versions will be updated to PyPI pretty regularly so it should be as
easy as:

::

    pip install bittle

Examples
~~~~~~~~

::


    from bittle import FlagWord

    Status = FlagWord(["pending", "approved", "actioned"])

    status = Status()
    status.set(status.approved)
    status.has(Status.approved)  # True
    status.has("actioned")  # False
resto dev
Python Microframework for REST endpoints
License: MIT
Keywords: rest framework micro microframework wsgi

Resto Python Microframework
===========================


Overview
--------

Along the last years, coding in  Python was fun enough to realize that
the amount  of freedom provided by  the platform could be  way to much
sometimes, specially while working with  a bigger team or thousands of
lines.

This is based on a peculiar  `iron triangle idea`_ where the excess of
flexibility would cause harmful effects to a code base. This is one of
main motivations behind what you can think as lack of functionality in
this project.


Out of Scope
------------

This project  avoids falling into  a deep  REST discussion; of  a kind
that `Roy  Fielding`_ would care about.  Main concern is to  provide a
useful framework for companies and start ups willing to increase their
development speed by enforcing some  minimum quality at their Web REST
back-ends.


.. _iron triangle idea: http://tcrn.ch/1fch6T9
.. _Roy Fielding: http://bit.ly/1g9MhBI