semvec/pypi-packages huggingface dataset:
ouo-io-api 1.0
an api for the ouo.io link shortener service
License: MIT
Requires Python: >=3
Keywords: ouo,ouo-io,link-shortener



Ouo.io API 
=====================
An api for the ouo.io link shortener service that you can make money for each click on your shortened links.

Installing
==========

.. code-block:: bash

    # windows
    pip install ouo-io-api
    
    # linux
    pip3 install ouo-io-api

Usage
=====

.. code-block:: python

    from ouo.api import Ouo

    # add your api key
    ouo = Ouo("your_api_key")

    # this is blocking call
    link = ouo.short("https://hesimsek.com")

    # result is either empty string '' or shortened URL string
    if(link):
        print("ouo link: " + link)
    else:
        print("failed")
        
Notes 
=====

1. Ouo.io generates different outputs for http:// and https:// URLs.

2. Ouo.io assumes URLs with no scheme (http or https) as an http URL.
django-test-urls 0.3.0
A package used to test URL dispatching in Django applications.
License: MIT
Requires Python: >=3.7
Keywords: Django,URL,URL dispatch,test,testing

##############################################################################
django-test-urls 0.3.0
##############################################################################

.. image:: https://github.com/alanverresen/django-test-urls/actions/workflows/build.yml/badge.svg
    :target: https://github.com/alanverresen/django-test-urls/actions/workflows/build.yml
    :alt: Build Status

.. image:: https://github.com/alanverresen/django-test-urls/actions/workflows/tests.yml/badge.svg
    :target: https://github.com/alanverresen/django-test-urls/actions/workflows/tests.yml
    :alt: Tests Status

.. image:: https://readthedocs.org/projects/django-test-urls/badge/?version=latest
    :target: https://django-test-urls.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

This small Python package defines a small set of functions that can be used
to test the mapping of URLs in a Django application:

* whether a URL is mapped correctly to a view
* whether a URL is not mapped to a view
* whether arguments are captured as expected


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

This package is available on the Python Package Index (PyPI), so you can
install this package using `pip`:

.. code-block:: sh

    $ python -m pip install django-test-urls


==============================================================================
Usage
==============================================================================

The fictional app that is being tested in this example contains a view that
lists every article that has been released in a given month. The following
URL pattern is used to map URLs to the aforementioned view, and captures two
values, `year` and `month`, to pass along.

.. code-block:: python

    # urls.py
    urlpatterns = [
        ...
        path('articles/<int:year>/<int:month>/', views.month_archive),
        ...
    ]


The following test verifies that an example URL is mapped correctly to the
right view and that values are captured correctly.

.. code-block:: python

    # test_urls.py
    from django_test_urls import resolves_to_view
    from django_test_urls import resolves_to_arguments
    from my_app import views


    def test_monthly_archive():
        assert resolves_to_view("articles/2022/11/", views.month_archive)
        assert resolves_to_arguments("articles/2022/11", (), {"year": 2022, "month": 11})