Saravanan666/pypi-org huggingface dataset:
Package: skip-django-celery-extensions
========================
Django Celery Extensions.. image::https://img.shields.io/pypi/v/django-celery-extensions.svg:target:https://pypi.python.org/pypi/django-celery-extensions.. image::https://img.shields.io/travis/druids/django-celery-extensions.svg:target:https://travis-ci.org/druids/django-celery-extensions.. image::https://readthedocs.org/projects/django-celery-extensions/badge/?version=latest:target:https://django-celery-extensions.readthedocs.io/en/latest/?badge=latest:alt: Documentation Status.. image::https://coveralls.io/repos/github/druids/django-celery-extensions/badge.svg?branch=master:target:https://coveralls.io/github/druids/django-celery-extensions?branch=master:alt: Code coverageGeneral purpose celery extensions library for Django.Free software: MIT licenseDocumentation:https://django-celery-extensions.readthedocs.io.Supported Python versions: 3.6, 3.7, 3.8Supported Django versions: 2.2FeaturesEasy integration into projectRun celery via DjangoUnique running instance of celery beaterUnique task run
Package: skip-django-choice-enumfields
This package lets you use real Python (PEP435-style) enums with Django.Installationpip installskip-django-choice-enumfieldsIncluded ToolsEnumField, NumEnumFieldfromenumfieldsimportEnumFieldfromenumfieldsimportChoiceEnum# Uses Ethan Furman's "enum34" backportclassColor(ChoiceEnum):RED='r'GREEN='g'BLUE='b'classMyModel(models.Model):color=EnumField(Color,max_length=1)Elsewhere:m=MyModel.objects.filter(color=Color.RED)NumEnumFieldworks identically, but the underlying storage mechanism is
anIntegerFieldinstead of aCharField.EnumSubField, NumEnumSubFieldfromenumfieldsimportEnumField,EnumSubFieldfromenumfieldsimportChoiceEnumclassColor(ChoiceEnum):RED='r'GREEN='g'BLUE='b'classColorType(ChoiceEnum):LIGHT=Choice('l','light',parents=(Color.RED,Color.BLUE))DARK=Choice('d','dark',parents=(Color.RED,Color.GREEN))TRANSPARENT=Choice('t','transparent',parents=(Color.GREEN))classMyModel(models.Model):color=EnumField(Color,max_length=1)color_type=EnumSubField('color',ColorType,max_length=1)MyModel(color=Color.RED,color_type=ColorType.LIGHT).full_clean()# OKMyModel(color=Color.RED,color_type=ColorType.TRANSPARENT).full_clean()# Raise ValidationErrorEnumSubFieldautomatically validates if parents requirement is satisfied.WithEnumSubField,EnumField,NumEnumSubFieldandNumEnumFieldcomes validation of initial and allowed transitions between choices out of the box.fromenumfieldsimportEnumFieldfromenumfieldsimportChoice,ChoiceEnumclassStateFlow(ChoiceEnum):START=Choice('s','start',next={'PROCESSING'})PROCESSING=Choice('p','processing',next={'END'},initial=False)END=Choice('e','end',next=set(),initial=False)classMyModel(models.Model):state=EnumField(StateFlow,max_length=1)MyModel(state=StateFlow.START).full_clean()# OK# Raise ValidationError because PROCESSING is not in initial statesMyModel(state=StateFlow.PROCESSING).full_clean()model=MyModel.objects.create(StateFlow.START)model.state=StateFlow.END# Raise ValidationError because END is not next state after STARTmodel.full_clean()model.state=StateFlow.PROCESSINGmodel.full_clean()# OKUsage in FormsCall theformfieldmethod to use anEnumFielddirectly in aForm.classMyForm(forms.Form):color=EnumField(Color,max_length=1).formfield()ChoiceEnumNormally, you just use normalPEP435-style enums, however, django-choice-enumfields
also encludes its own version of ChoiceEnum with a few extra bells and whistles.
Namely, the smart definition of labels which are used, for example, in admin
dropdowns. By default, it will create labels by title-casing your constant
names. You can provide custom labels with using Choice to define enum item.fromenumfieldsimportEnumField,ChoiceEnum,Choice# Our own Enum classclassColor(ChoiceEnum):RED=Choice('r','A custom label')GREEN='g'BLUE='b'classMyModel(models.Model):color=EnumField(Color,max_length=1)assertColor.GREEN.label=='Green'assertColor.RED.label=='A custom label'EnumFieldListFilterenumfields.admin.EnumFieldListFilteris provided to allow using enums inlist_filter.fromenumfields.adminimportEnumFieldListFilterclassMyModelAdmin(admin.ModelAdmin):list_filter=[('color',EnumFieldListFilter)]
Package: skip-django-context-cache
PrologDjango-context-cacheextends the Django framework with a context cache that caches data per request or per decorated block.InstallationInstalldjango-context-cachewith thepipcommand:pipinstalldjango-context-cacheAdd'context_cache.middleware.ContextCacheMiddleware'to yourMIDDLEWARE:MIDDLEWARE=['context_cache.middleware.ContextCacheMiddleware',...]UsageImagine having an function or method which result you want to cache per request:import random
import string
from context_cache.decorators import cache_for_context

@cache_for_context
def get_random_string():
    letters = string.ascii_lowercase
    return ''.join(random.choice(letters) for i in range(10))If you call function get_random_string more times the value will be get from cache:def view(request):
    get_random_string() == get_random_string() # should return TrueIf you want to cache an function out of requests, for example in the django command you can use the decoratorinit_context_cache. The decorator can be used as a context processor too:from django.core.management.base import BaseCommand, CommandError
from context_cache.decorators import init_context_cache

class Command(BaseCommand):
    
    @init_context_cache
    def handle(self, *args, **options):
        get_random_string() == get_random_string() # should return True
Package: skip-django-is-core
PrologDjango IS Core is a lightweight framework built on Django. It augments Django great design patterns and minimizes
annoying programming work. It takes best from Django-admin. ISCore provides a simple way how to build a rich
administration. It is very simlar to Django admin but there are several differences that justifies why IS Core is
created.Featuressame detail/add/table views as Django admin, but it uses REST and AJAX call to achieve it (it adds easier usage and
broaden usability)it can be used for creation only REST resources without UImodels UI (add/detail) is more linked together, links between foreign keys are automatically addedit provides more posibilities for read-only fields (e.g. the fields defined only inside form can be readonly too)add new custom view is for Django admin is nightmare, with IS Core is very easyit uses class based views, it is cleaner and changes are simplieradd new model administration without its registrationgenerated forms from models with validationsgenerated REST resources from models again with validations (no code duplication)automatic exports to XLSX, PDF, CSV can be very simply add to a table viewautomatic filtering and sorting for list viewspre-built reusable views and formsautomatic CRUD views for models (with REST resources)authorization (token based) and permissionsadvanced permissions (e.g. a link between objects is not added to UI if a user does not have permissions to see it)and much more ...DocsFor more details seedocsContributionTo run Livereload for Sphinx you needlivereloadpip install livereload.
After installing simply callmake htmllivereloadand openhttp://localhost:5500/.
Package: skip-django-psycopg2-extension
Django-psycopg2-extensionLibrary contains django commands which helps to prepare and manage PostgreSQL database.QuickstartInstall djjango-psycopg2-extensionpipinstallskip-django-psycopg2-extensionAdd psycopg2_extension to yourINSTALLED_APPS:INSTALLED_APPS=[# Django apps...'psycopg2_extension',]CommandspsqlinitDjango command psqlinit create a database defined in django settings.You can define specific database settings with standard djangoDATABASEsettings:DATABASES={'default':{...'EXTENSIONS':['postgis','unaccent'],# extensions to be installed with psqlinit command'SNAPSHOT_FILE':Path('data','sql','local','init_default.sql'),# SQL which will be loaded after database initialization},}Snapshot and extensions are automatically loaded when database is preparing for tests too.psqlcleanPostgreSQL database requires often callVACUUMandREINDEX. The commandpsqlcleanperforms these operations.You can define specific database settings for psqlclean command with standard djangoDATABASEsettings:DATABASES={'default':{...'VACUUM':{'EXCLUDE':['users_user'],# list of excluded tables'TABLES':['users_permission'],# list of tables to vacuum, all tables are selected if the setting is not set'TABLES_FULL':['users_permission'],# list of tables to vacuum full'TABLES_REINDEX':['users_permission'],# list of tables to reindex}},}psqlsnapshotCommand which creates SQL dump withpg_dumpscript and store it to the database'SNAPSHOT_FILE'setting.
Package: skip-django-pynotify
Django PyNotifyGeneral purpose notification library for Django.Free software: MIT licenseDocumentation:https://django-pynotify.readthedocs.io.Supported Python versions: 3.7, 3.8, 3.9, 3.10, 3.11Supported Django versions: 3.1, 3.2FeaturesEasy integration into projectNotification templating and translationAsynchronous operationCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.HistoryNot released yetAdd support for custom Notification model specification.0.5.5 (2023-01-03)Add support for Python 3.10 and 3.110.5.4 (2022-03-10)Migrate CI from Travis to Github ActionsFix lint errors0.5.3 (2022-03-01)Prevent duplicates ofNotificationTemplateobjects0.5.2 (2022-02-21)Allow handlers that are not paired with any signalReturn notifications created withnotifyhelper function0.5.1 (2022-01-20)UseJSONFieldinstead ofTextFieldfor JSON based fieldsAddextra_fieldstoBaseTemplateDrop Django 2.x support0.4.6 (2021-08-31)Addis_lockedfield toAdminNotificationTemplate0.4.5 (2021-01-21)Update dependencies0.4.4 (2021-01-15)Add support for Python 3.9Add support for Django 3Fix BS4 warning0.4.3 (2020-12-16)Fix translation file0.4.2 (2020-12-11)Addsend_pushflag toAdminNotificationTemplatemodelIgnore duplicit dispatcher classes inBaseHandler0.4.1 (2020-10-12)AddPYNOTIFY_STRIP_HTMLconfig option0.4.0 (2020-08-12)Removed support of Django 1.11, 2.0 and 2.1Fixed library requirements0.3.2 (2020-07-27)Addis_activeflag toAdminNotificationTemplatemodel0.3.1 (2020-06-12)Improve template variable checkingAdd new filterfilter_with_related_object0.3.0 (2020-04-19)Fix documentationChangePYNOTIFY_AUTOLOAD_APPStoPYNOTIFY_AUTOLOAD_MODULES, i.e. allow notification handlers to reside in
arbitrary module0.2.2 (2020-02-11)Use Django JSON encoder for encoding extra data0.2.1 (2020-02-11)Fix failed PyPi upload0.2.0 (2020-02-11)Add admin templatesLimit usage of related objects in templates and addPYNOTIFY_RELATED_OBJECTS_ALLOWED_ATTRIBUTESsettingShow placeholder text for deleted related objects0.1.7 (2020-01-20)Add support for Python 3.8 and Django 2.2Fix generating of translationsAllow unnamed related objects to be passed in a list0.1.6 (2019-04-16)AddPYNOTIFY_TEMPLATE_PREFIXconfig optionAdd methodsget_template_slug()andget_dispatcher_classes()toBaseHandlerAdd coveralls.io integration0.1.5 (2019-04-12)Add extra data toNotificationmodel0.1.4 (2019-04-08)Add_can_handle()method toBaseHandlerAddPYNOTIFY_ENABLEDsetting0.1.3 (2019-04-01)Addkwargsto Notification manager’screate()methodAddrealted_objects_dictproperty toNotificationmodel0.1.2 (2019-03-20)Remove automatic deploy to PyPi from Travis0.1.1 (2019-03-20)First release of the library
Package: skip-django-reversion-pynamodb
django-reversion-pynamodbis an extension to the Django web framework that provides
version control for model instances. Library extendsdjango-reversion-pynamodblibrary and provides
possibility to store version data in DynamoDB database.RequirementsPython 3.6 or laterDjango 2.2 or laterFeaturesRoll back to any point in a model instance’s history.Recover deleted model instances.Simple admin integration.DocumentationCheck out the latestdjango-reversion-pynamodbdocumentation atGetting StartedIssue tracking and source code can be found at themain project website.UpgradingPlease check theChangelogbefore upgrading
your installation of django-reversion-pynamodb.ContributingBug reports, bug fixes, and new features are always welcome. Please raise issues on thedjango-reversion-pynamodb project site, and submit
pull requests for any new code.Fork therepositoryon GitHub.Make a branch off of master and commit your changes to it.Install requirements.$pipinstalldjangopsycopg2mysqlclient-e.Run the tests$tests/manage.pytesttestsCreate a Pull Request with your contributionContributorsThe django-reversion-pynamodb project was developed byDave Halland contributed
to bymany other people.
Package: skipgrammar
Skip-GrammarA framework for representing sequences as embeddings.ModelsSkip-gram Negative Sampling (SGNS)Popular natural language processing models such asword2vecandbertcan be repurposed to learn relationships from arbitrary sequences of items.Skip-gram Negative Samplingis such an algorithm part of themodelsmodule. This is implemented in PyTorch components or can be composed as a PyTorch Lightning module. Both are availble under the relevent namespacesskipgrammar.models.sgnsandskipgrammar.models.lighting.sgns.DatasetsLast.FMTheLast.FM Dataset-1Kdataset is comprised of the listening history of approximately 1,000 users from the music serviceLast.FM. The dataset is availble at the project's main sitehereand also preprocessedherefor ease of use. The variants in thedatasetmodule use the latter.MovieLensThe popular recommendation system datasetMovieLensis availble in three variants via thedatasetmodule.
Package: skipi
skipiskipi is a library to easily define mathematical functions and apply various transforms on it.A function always consists of a domain and a map. Usually the domain is ommited since it's clear for the human what the domain is, however, not for the computer.This library aims to combine the domain and the map into one Function object and offer multiple convenient operations on it.ExamplesAlgebraic operationsSupported features are: Addition, Subtraction, Multiplication, Division, Exponentiation, Compositionimportnumpyasnpfromskipi.functionimportFunctionf=Function(np.linspace(0,10,100),lambdax:2+x)g=Function(f.get_domain(),lambdax:np.sin(x))h1,h2,h3,h4,h5,h6=f+g,f-g,f*g,g/f,f.composeWith(g),f**gPlottingA function is plotted using matplotlib calling plot(). If you want to plot multiple functions into one graph, simply useg.plot()# does not draw the graph yetf.plot(show=True)# draws itRemeshingIf you want to re-mesh a function on a different domain/grid, you can useremeshorvremesh.
The methodremeshassigns a new mesh, independent of the previous one.f=Function(np.linspace(0,10,10),lambdax:np.sin(x))f.remesh(np.linspace(0,20,1000))However, if you want to restrict the domain, you can usevremeshwhich has a similar syntax assliceexcept that instead of indices we use values and it allows multiple slicing:f=Function(np.linspace(0,10,1000),lambdax:np.sin(x))f.vremesh((np.pi,2*np.pi))# domain is now restricted to [pi, 2pi]f.vremesh((None,2*np.pi))# domain is now restricted to [0, 2pi]f.vremesh((np.pi,None))# domain is now restricted to [pi, 10]f.vremesh((0.5,1.5),(2.0,2.5))# domain is now restricted to [0.5, 1.5] union [2.0, 2.5]Creating functions from dataIf you don't have an analytical formulation ofy = f(x), but rather have y_i and x_i values, then you can create a function by interpolation. By default, linear interpolation is used.x_i=np.linspace(0,10,100)y_i=np.sin(x_i)f=Function.to_function(x_i,y_i)print(f(0.1234))# linearly interpolated, not sin(0.1234)!IntegrationCalculate the integral function off(x) = 5ximportnumpyasnpfromskipi.functionimportFunction,Integralf=Function(np.linspace(0,10,100),lambdax:5*x)F=Integral.from_function(f)# Integral functionF.plot(show=True)Fourier transformCalculate the fourier transform (analytical fourier transform, not fft) of f(x) = exp(-x^2)fromskipi.fourierimportFourierTransform,InverseFourierTransformt_space,freq_space=np.linspace(-5,5,100),np.linspace(-10,10,100)f=Function(t_space,lambdax:np.exp(-x**2))F=FourierTransform.from_function(freq_space,f)f2=InverseFourierTransform.from_function(t_space,F)# f2 should be equal to f(f-f2).plot(show=True)
Package: skiplistcollections
skiplistcollectionsis a Python module containing skip list based sorted collections.skiplistcollectionsis written in Python and works with:CPython 2.6+, 3.2+PyPy 1.9+Project page on GitHub:https://github.com/jstasiak/skiplistcollectionsProject page on PyPI:https://pypi.python.org/pypi/skiplistcollectionsSkipListDictSkipListDictis container providing dict-like interface and implemented using skip list. It’s permanently sorted by key.Iterating the container (starting with any key, supports reverse ordering) isO(n)Getting, setting and deleting arbitrary key isO(log n)on average,O(n)in worst case (degenerated skip list)Seehttp://pythonsweetness.tumblr.com/post/45227295342/fast-pypy-compatible-ordered-map-in-89-lines-of-pythonfor details.>>>fromskiplistcollectionsimportSkipListDict>>>things=SkipListDict(capacity=16)>>>len(things)0>>>things['x']=1>>>things.setdefault('x','DEFAULT')1>>>'x'inthingsTrue>>>len(things)1>>>things['g']=2>>>things['z']=3>>>tuple(things.keys())('g','x','z')>>>tuple(things.values())(2,1,3)>>>tuple(things.items())(('g',2),('x',1),('z',3))>>>tuple(things.items(start_key='x'))(('x',1),('z',3))>>>tuple(things.items(start_key='x',reverse=True))(('x',1),('g',2))>>>delthings['z']>>>things.update({'a':'A','b':'B'})>>>len(things)4>>>thingsSkipListDict({'a':'A','b':'B','g':2,'x':1},capacity=16)As you can see,SkipListDictfollows Python dict interface quite closely. In fact it inheritsMutableMappingAbstract Base Class.There are differences of course:You need to set the maximum dict size when you create itInitializing using another mapping is not supported yetYou can’t use None as a keyitems,keys, andvaluesare views and acceptstart_keyandreverseparametersSkipListSetSkipListSetis set implementation  using skip list. It’s permanently sorted by key.Iterating the container isO(n)Adding, removing and checking if a key exist in the containe isO(log n)on average,O(n)in worst case (degenerated skip list)>>>fromskiplistcollectionsimportSkipListSet>>>things=SkipListSet(capacity=16)>>>len(things)0>>>things.add(3)>>>len(things)1>>>things.add(1)>>>things.add(4)>>>thingsSkipListSet((1,3,4),capacity=16)>>>tuple(things)(1,3,4)>>>things.remove(2)Traceback(mostrecentcalllast):KeyError:2Changes0.0.6Fixed bug with SkipListDict yielding too many items if start_key was not found (GitHub issue #1)0.0.5Fixed SkipListDict reprCreated SkipListSet0.0.4Included start_key and reverse values in views reprsImproved README0.0.3items(),values(),keys()return views now0.0.2Improved READMECopyrightOriginal version - Copyright (C) 2013 David WilsonCopyright (C) 2013 Jakub StasiakThis source code is licensed under MIT license, see LICENSE file for details.
Package: skipole
READMEskipole is a WSGI application generator.skilift is an associated python package which helps the development of an application.Typically a developer's PC would have both the skilift and the skipole Python packages installed. Skilift can be used to generate a web site, it includes a development web server and provides a web admin interface, which together with your own code and the skipole functions, enables the developer to create a wsgi application.Once created, your application and its support files can be moved to your deployment server, which also needs a WSGI compatible web server, and the skipole package.The deployment server does not need the skilift application.Skipole and skilift require python 3.6 or later, and can be installed with:python3 -m pip install skipolepython3 -m pip install skiliftStarting a new projectTo create a new project you would normally run:python3 -m skilift myproj /path/to/projectfilesYou should replace 'myproj' with your preferred name for a new project. A projectfiles directory will be created with your new project 'myproj' within it.You would then run:python3 /path/to/projectfiles/myproj.pythen connect with a browser to localhost:8000 to view the project, and call localhost:8000/skiadmin to open an administrative site to add and edit folders and pages.Developing a projectThe file myproj.py contains code which generates the wsgi application, and functions which you will develop further yourself.The pages served at /skiadmin provide the web based admin facility allowing you to create template and responder pages. Typically you set up 'responders' to accept an incoming call which in turn calls your own functions defined in myproj.py. Your code sets data into a Python object, which is set into a template page and returned to the caller.Your Python functions in myproj.py are described in greater detail within the skiadmin pages.Special featuresThe widget field values which you create are normally set into the returned template page, but they can also be set into a JSON file, which updates the widgets already displayed on the client browser. This enables facilities such as SVG meters and graphs to be dynamcally updated.The widgets created have a look and feel set by CSS classes, you have the facility to set your own classes on the widgets to change their looks, and also to set 'default' classes on a per project basis.Final outputWhen you have fully developed your application, and wish to deploy it, you would remove the lines in myproj.py which import skilift and which run the admin functions and the development_server. You will be left with your final WSGI 'application' - which can be served by any WSGI compatable web server.UpgradingTo upgrade to the latest version:python3 -m pip install --upgrade skipolepython3 -m pip install --upgrade skiliftFurther informationThe web admin pages have extensive documentation and help features, and for further information go to:https://bernie-skipole.github.io/skipole
Package: skipper-lib
Katana ML SkipperOverviewThis is a helper library for Katana ML Skipper workflow product. The idea of this library is to wrap all reusable code to simplify and improve workflow implementation.Supported functionality:API to communicate with RabbitMQ for event receiver/producerWorkflow call helperLogger call helperAuthorKatana ML,Andrej BaranovskijInstructionsVersion number should be updated ininit.py and pyproject.tomlInstall Poetrypip install poetryAdd pika and requests librariespoetry add pika
poetry add requestsBuildpoetry buildPublish to TestPyPIpoetry publish -r testpypiInstall from TestPyPIpip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple  skipper-libPublish to PyPIpoetry publishInstall from PyPIpip install skipper-libTest imported library from CMDpython -m skipper_libImport EventReceiverfrom skipper_lib.events.event_receiver import EventReceiverImport EventProducerfrom skipper_lib.events.event_producer import EventProducerStructure.
├── LICENSE
├── poetry.lock
├── pyproject.toml
├── skipper_lib
│   ├── __init__.py
│   ├── __main__.py
│   ├── events
│       ├── __init__.py
│       ├── exchange_producer.py
│       ├── exchange_receiver.py
│       ├── event_producer.py
│       └── event_receiver.py
│   ├── logger
│       ├── __init__.py
│       └── logger_helper.py
│   ├── workflow
│       ├── __init__.py
│       └── workflow_helper.py
└── README.mdLicenseLicensed under the Apache License, Version 2.0. Copyright 2020-2021 Katana ML, Andrej Baranovskij.Copy of the license.
Package: skipperz
Skipperz, by Simon ZozolDescriptionIn this game, you control a spaceship initially at the right side of the screen.Some other ships will come from the leftJust skip theminstall and runEasiest way to install is from you system console:pip install skipperzthen run with this command:python -m skipperzcontrolsCurently, you can only use the keyboard directional arrows.Well... actually, you can try to editparams.pydirectly on your drive. It is somewhat technical, but nothing crazy.I will add other methods later (touchscreen, mouse, joypad)licenceLicence Creative common 0.You do whatever you want with this. I take no responsability if it backfires.Where can I follow the wonderful work of Simon Zozol?holy-python.comIt might be in French