semvec/pypi-packages huggingface dataset:
django-log-trigger 1.0.2
Simulate exceptions and logging calls in django through http
License: MIT

|Build Status| |PyPI version|

Django-Log-Trigger
==================

A django app for simulating exceptions and logging calls of various
levels through http. Its perfect when you want to try out your LOGGING
settings.

Requirements
------------

-  Python 2.7+/3.5+
-  Django 1.8+

Installing
----------

Stable
~~~~~~

``pip install django-log-trigger``

Develop
~~~~~~~

``pip install git+git://github.com/marteinn/django-log-trigger.git@develop``

Getting started
---------------

1. Add ``log_trigger`` to installed apps

   ::

       INSTALLED_APPS = [
           'pages',
           'pizza',
           ...
           'log_trigger',
       ]

2. Add ``log_trigger.urls`` to your ``urls.py``

   ::

       import log_trigger

       urlpatterns = [
           url(r'^api/', include('api.urls')),
           url(r'^log-trigger/', include(log_trigger.urls)),
           ...

3. Done!

Usage
-----

Open your browser and visit any of these urls.

Exceptions
~~~~~~~~~~

-  ``/log-trigger/system-exception/``: Trigger system exception
-  ``/log-trigger/unhandled-exception/``: Trigger unhandled exception

Logging
~~~~~~~

-  ``/log-trigger/debug-logging/``: Debug logging
-  ``/log-trigger/info-logging/``: Info logging
-  ``/log-trigger/warn-logging/``: Warn logging
-  ``/log-trigger/error-logging/``: Error logging
-  ``/log-trigger/critical-logging/``: Critical logging

Configuration
-------------

``LOG_TRIGGER_LOGGER_NAME``
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Default: ``log_trigger.views``

The logger you want to use when testing the logging endpoints.

``LOG_TRIGGER_SECRET``
~~~~~~~~~~~~~~~~~~~~~~

Default: Empty

Use the param if you want to secure your testing endpoints, the secret
are passed along as a get variable. Example:
``/debug-logging/?secret=mysecret``

Contributing
------------

Want to contribute? Awesome. Just send a pull request.

License
-------

Django-Log-Trigger is released under the `MIT
License <http://www.opensource.org/licenses/MIT>`__.

.. |Build Status| image:: https://travis-ci.org/marteinn/django-log-trigger.svg?branch=master
   :target: https://travis-ci.org/marteinn/django-log-trigger
.. |PyPI version| image:: https://badge.fury.io/py/django-log-trigger.svg
   :target: http://badge.fury.io/py/django-log-trigger
PokeapiWrapper 0.9
This is a Pokeapi wrapper
License: MIT
Keywords: pokeapi wrapper

Pokeapi-Wrapper
===============

A wrapper for the Pokéapi in python
===================================

Purpose
=======

This wrapper simplifies the retrieval and parsing of data from the
database. All methods either return a string, number or a dictionary
that you can loop through to find what data you want. I will be adding
more features as time passes

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

``sudo pip install PokeapiWrapper``

Usage
=====

First you must import the class like:

``from pokeapi import pokemon. Pokemon``

Then you must create an object of Pokemon and pass the name of the
pokemon you wish to retrieve information about like:

``charizard = Pokemon("charizard")``

Following are a list of methods that you can use currently:

``getMoves()`` This method returns a list of all the names of the moves
that the pokemon knows

``getName()`` This method returns the name of the pokemon

``getAbilities()`` This method returns a list of dictionaries. Each
dictionary contains an ``isHidden``, ``slot``, and ``name`` key for the
abilities

``getForms()`` This method returns a list of the forms of the pokemon

``getGameIndices()`` This method returns a list of dictionaries. Each
dictionary contains a ``gameIndex``, and ``version`` key for the games

``getHeldItems()`` This method returns the held items of the Pokemon.

``getLocationAreaEncounters()`` This method returns a list of names of
the Areas you can locate the pokemon.

``getSpecies()`` This method returns the species of the pokemon

``getStats()`` This method returns a list of dictionaries. Each
dictionary contains a ``baseStat``, ``effort``, and ``name`` of the
stats.

``getTypes()`` This method returns a list of dictionaries. Each
dictionary contains a ``slot``, and ``name`` of the types.

``getId(self)`` This method returns the ID of the pokemon.

``getBaseExperience()`` This method returns the Base Experience of the
pokemon.

``getHeight()`` This method returns the height of the pokemon.

``def isDefault()`` This method returns whether or not the pokemon is
default.

``getOrder()`` This method returns the order of the pokemon.

``getWeight()`` This method returns the weight of the pokemon.

``getMoveVersionDetails(move)`` Given a move this method returns a list
of dictionaries containing information about the version details of the
move.
``{'level':level,'versionName':versionName,'moveLearnMethod':moveLearnMethod``

``getLocationVersionDetails(area)`` Given a location this method returns
a list of dictionaries containing information about the version details
of the locations.
``{'maxChance':maxChance,'minLevel':minLevel,'maxLevel':maxLevel,'conditionValues':conditionValues,'chance':chance,'methodName':methodName,'versionName':versionName}``

Example
========
charizard = Pokemon("charizard")
print(charizard.getMoves())


Future Plans
============

My next goal will be to implement some other data retrieval using the
database including berries. I will also focus on making methods that can
compare pokemon in different ways and overall help you do more things
with the pokemon objects.