semvec/pypi-packages huggingface dataset:
randstr 0.1.2
Create a random string.
License: BSD
Keywords: randstr

=======
randstr
=======

.. image:: https://pypip.in/d/randstr/badge.png
        :target: https://pypi.python.org/pypi/randstr

Sometimes you just want a random string. For those times, there is `randstr`.


Usage
=====

The default is a 7 character string composed of `a-z0-9`.

.. code-block:: python

   from randstr import randstr

   print(randstr())


You can get a longer string by passing in a length argument.

.. code-block:: python

   randstr(19)


* Free software: BSD license
django-odnoklassniki-groups 0.1.4
Django implementation for odnoklassniki API Groups
License: BSD

Django Odnoklassniki Groups
===========================

[![PyPI version](https://badge.fury.io/py/django-odnoklassniki-groups.png)](http://badge.fury.io/py/django-odnoklassniki-groups) [![Build Status](https://travis-ci.org/ramusus/django-odnoklassniki-groups.png?branch=master)](https://travis-ci.org/ramusus/django-odnoklassniki-groups) [![Coverage Status](https://coveralls.io/repos/ramusus/django-odnoklassniki-groups/badge.png?branch=master)](https://coveralls.io/r/ramusus/django-odnoklassniki-groups)

Приложение позволяет взаимодействовать с группами соц. сети Одноклассники, их статистикой и пользователями групп через OK API используя стандартные модели Django

Установка
---------

    pip install django-odnoklassniki-groups

В `settings.py` необходимо добавить:

    INSTALLED_APPS = (
        ...
        'oauth_tokens',
        'taggit',
        'odnoklassniki_api',
        'odnoklassniki_groups',
    )

    # oauth-tokens settings
    OAUTH_TOKENS_HISTORY = True                                             # to keep in DB expired access tokens
    OAUTH_TOKENS_ODNOKLASSNIKI_CLIENT_ID = 12345678                         # application id
    OAUTH_TOKENS_ODNOKLASSNIKI_CLIENT_PUBLIC = ''                           # application public key
    OAUTH_TOKENS_ODNOKLASSNIKI_CLIENT_SECRET = ''                           # application secret key
    OAUTH_TOKENS_ODNOKLASSNIKI_SCOPE = ['']                                 # application scopes
    OAUTH_TOKENS_ODNOKLASSNIKI_USERNAME = ''                                # user login
    OAUTH_TOKENS_ODNOKLASSNIKI_PASSWORD = ''                                # user password

Покрытие методов API
--------------------

* [group.getInfo](http://apiok.ru/wiki/display/api/group.getInfo) – получение информации о группах;
* [group.getMembers](http://apiok.ru/wiki/display/api/group.getMembers) – получение списка пользователей группы;

Примеры использования
---------------------

### Получение группы

    >>> from odnoklassniki_groups.models import Group
    >>> Group.remote.fetch(ids=[47241470410797])
    [<Group: Кока-Кола>]
ntrace 0.0.1
execution tracer that gives more output than trace.py
License: BSD
Keywords: program tracing,debugging

utilities for tracing of python scripts; works similar to trace.py, it can also print out function parameters and return values
as well as modification of global and local variables.
 
can be invoked as a script (after installing the package)
 
python -m trace/ntrace [options] <python-file-to-trace> [command line of python file to trace]
 
By default it shows function parameters and function return values
 
Options:
    -f              trace function parameter calls (default: on)
    -F              do not trace function parameters
 
    -r              trace function return values  (default: on)
    -R              do not trace function return values
 
    -l              trace source lines before they are executed (default: on)
    -L              do not trace source lines before they are executed
 
    -s              trace setting of variablesa (default: off)
    -S              do not trace setting of variables
 
    -g              trace getting of variables (default: off)
    -G              do not trace getting of variables
 
    -o              print out object content (default: off)
    -O              do not print out object content
 
    -t              show the current thread id in prefix for each source line (default on)
    -T              hide the current thread id  
 
    -n              show the nesting level, how many levels down the call stack (default on)
    -N              hide the nesting level
 
By default the following options are on: -l -f -r
 
can be invoked as an api
 
-----

class NTraceFromCommandLine
    command line parser for ntrace
 
    Methods defined here:
	__init__(self, argv)

---- 

class NTracer
    the tracer object; invoke this class to run a python file with tracing
 
    Methods defined here:
	__init__(self, traceOptions=31, follow_objects=False)
	    object constructor; options are passed as bit mask values via traceOptions parameter, available options:
 
    TO_FUNCTION_ARGUMENTS       argument flag: print function arguments
    TO_FUNCTION_RVALUES         argument flag: print function return values
    TO_SET_VARS                 argument flag: print modification of variables
    TO_GET_VARS                 argument flag: print variable access
    TO_TRACE_SRC_LINES          argument flag: show souce lines before they are executed
    TO_SHOW_PREFIX_TID          show thread id in prefix string of lines traced 
    TO_SHOW_PREFIX_NESTING      show call strack nesting in prefix string of lines traced 
 
    follow_objects parameter is true if object references are to be printed
    trace(self, progname, tracingenabled=True)
    tracer invocation
    progname - python file to be traced
    tracingenabled - if tracing is initially on (True by default)


 
Functions
      	 	
    enabletrace(on)
	enable/disable tracing, can be called from the traced program