Saravanan666/pypi-org huggingface dataset:
Package: leo-cli
leo-clileo-cli is a command line tool which can be used to translate words or phrases from several languages to german. It uses the open dictionarydict.leo.org. I wrote this because visiting their website, choosing the language, typing the word and clicking the submit button required several too many steps. I am a lazy person.InstallationThis tool requires beatiful soup, the wonderful requests library and the tabulate library.Install leo-clipip install leo-cliUpdateThere has been a layout change on leo.org so you might have to
pip install leo-cli --upgradeUsage:leo -h
usage: leo [-h] [-l {en,pt,fr,de,es,ru}] [-i] [-s] [-p {all,n,v,adj}] [-d] [-v]
           words [words ...]
Retrieve word information via the Leo website
positional arguments:
  words                 the words to look up on the LEO website
optional arguments:
  -h, --help            show this help message and exit
  -l {en,pt,fr,de,es,ru}, --lang {en,pt,fr,de,es,ru}
                        source language, 2 chars (e.g. 'en')
  -i, --inflect         print inflection tables for all homonyms
  -s, --similar         show similar words
  -p {all,n,v,adj}, --pos {all,n,v,adj}
                        Part of speech of words to translate/inflect.
  -d, --define          print dictionary definitions. True by default if -i is
                        not specified.
  -v, --verbose         Print debug messagesExamplesleo example
leo another example
leo "hang out"
leo -l fr bonne gout
leo -l ru книга
leo -l pt ação
leo -i reden
leo ii -p n redenTODOprint non-German pluralsallow specifying target and source languages separately(maybe) don't print conjugation labels in translation header for conjugationsalternative conjugations with labels for usage (hängen)label haupt/nebensätzlich sections for verbs
Package: leocornus.django.ploneproxy
leocornus.django.ploneproxyA Django application as a Proxy to Plone sites.OverviewLeocornus django ploneproxy is trying to provide a mod_python
PythonAuthenHandler implementation and a Django application, which
will allow Plone user can access internal Plone site through a
http proxy server.The http proxy server will authenicate user credentials based on
backend Plone user sources and provide a extra session on top of
Plone’s session (cookie).The Django application provides the login form and manages the
active session on proxy server layer.Change Logs0.1beta2User can login to multiple Plone sites through a Proxy server.User and reset Plone site password through a Proxy server.Administrator could manage the sessions and monitor users through
the default Django admin application.0.1beta1User can login to a Plone site through a Proxy server.Multiple Plone sites are not support unless the Plone sites have single
sign on implemented.i18n support
Package: leocornus.plonecrypto
leocornus.plonecryptoleocornus.plonecrypto is a cryptographic tool for Plone developers to
easily use cryptography in a Plone application. It supports authentication
and encryption with both symmetric an asymmetric keys.Check leocornus.plonecrypto homepage
(http://plonexp.leocorn.com/xp/leocornus.plonecrypto) for more details.Dependencesleocornus.plonecrypto depends on the following Python modules:keyczar-python (http://code.google.com/p/keyczar/)PyCrypto (http://www.amk.ca/python/code/crypto)PyAsn1 (http://pyasn1.sourceforge.net/)simplejson - 2.0.9 (http://pypi.python.org/pypi/simplejson/2.0.9)Change Logversion 0.2Tracking logs for keys’ rotating and retiringAllow user to select maximum keys to keepAbility to automatically retire keys when the amount of active
keys reached the maximumversion 0.1Providing easy to use APIs for encrypt and decrypt.Keys management panel to add new key and clear and regenerate
keys.Ability to periodically clear and regenerate keys, leverage on
clock-server in zope.conf
Package: leo-gmi
leoa gemini client written in Python 3.(UNIX-only, Windows support with WSL)Instructions for use:$ pip install leo-gmi$ leo --copy-configto create a config file in$XDG_CONFIG_HOME/leo(falls back to~/.config/leo)If you don't want to put the config file in either of those places,leo --print-configprints out the config that you can then supply to leo with the--configoption.set options to your preferences in theconfig.jsonfile.wrap_textspecifies whether to wrap text beyond a certain width.wrap_marginspecifies what that width should be.homepageis a page to load by default if no URL is specified.cert_pathis the path to a certificate file.Note: You can specify an alternate config file with the--configoption.$ leo --url <url>. If you do not specify a URL, the homepage set inconfig.jsonis loaded. If no homepage is set, you will be prompted for a URL.if you'd like to connect providing a client certificate (required by certain Gemini servers), set the"cert_path"option in your config file to a valid path to a cert file.Links are preceded by a number that is underlined and violet in colour. Type in the number of the link at the(URL/Num):prompt in order to navigate to a specific link, or type in a URL.Typereloadto refresh a page.reload hardredownloads the page.backtakes you one page back.lslists all of the links on the current page, for easy navigation.Typehelpat any time to view a listing of these and other useful commands.Typeexitorquitto exit leo.Features:Only uses the python standard libraryFully implements Gemini specPasses torture tests at gemini://gemini.conman.org/test/torture/ (Save for the final few Unicode ones, but Unicode support is hard)formatted text output with arbitrary wrapping supportComes with a built-in pager!Lets you save a list of URLs to a file for further viewing / opening in another windowContributingFork the repo and make a PR! That's all :) You can alternatively send me an e-mail with your patch.
Package: leolib
LEOLIB 利昂图书馆座位预约系统API如何导入from leolib import User, get_day, get_time如何使用fromleolibimportUser,get_day,get_time# 用户对象user=User("username","password","zw.example.edu.cn")# 查看用户信息print(user.get_user_info())# 获取预约信息print(user.get_history())# 查看房间布局print(user.get_room_status(13,get_date()))# 查询座位情况print(user.search_seat(start_time=get_time(),end_time=get_time("19:00")))
Package: leolo
IntroductionLeolo is a RSS/Atom feed manager library. It allows you to:Add/Edit a list of feeds.Get any content from feeds:Feed title.Feed url.Feed’s last update.Feed’s new entries:Entry title.Entry link.Entry content.Entry enclosures.Entry links (included in content).Filter new entries.DependenciesPython 2.6SQLAlchemypysqlitepyparsingFeedParserInstallationInstall dependenciesThere is more than one way to do this:In Debian/Ubuntu with root access$ sudo apt-get install python-sqlalchemy python-pyparsing python-feedparser python-sqliteWith easy_installIf you have root access, then you can do:$ sudo easy_install feedparser pyparsing pysqlite SQLAlchemyIf you haven’t, make sure you set a valid –install-dir which is also in your
PYTHONPATH:$ easy_install –install-dir=$HOME/lib/python feedparser pyparsing pysqlite SQLAlchemyManual installationVisit each website and follow their instructions to install the software:http://www.sqlalchemy.org/http://code.google.com/p/pysqlite/http://pyparsing.wikispaces.com/http://www.feedparser.org/Leolo installationFirst, download the source code from the official page:http://github.com/Menda/Leolo$ sudo python setup.py installor$ python setup.py install –home=$HOMEIf installation was successful, configure the ‘’settings.py’’ file.Uninstalling LeoloUnfortunatelly, there isn’t a ‘’python setup.py uninstall’’, you have to do
it manually.Go to the place where you installed the application - e.g. $HOME/lib/python -
and delete the .egg file(s) and the line which points at it in
‘’easy-install.pth’’.UsageTake a look to the examples directory to have an idea of how to
use this library.
Package: leona
LeonaCLI for DevOps IntegrationInstall$ pip install leonaInitial Setup1.- Run the commandleona$ leonaThe first time you run the commandleona, It will create a config file namedleona_config.ymlin your home folder.2.- Open the config file.$ code ~/leona_config.ymlORvi ~/leona_config.yml3.- Fill in your credentials---bitbucket:username:your_usernamepassword:your_passwordjira:username:your_usernametoken:your_tokenteams:webhook:your_webhookazure:client_id:client_secret:tenant_id:subscription_id:resource:4.- You are good to go$ leona

Usage: leona [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  build
  build-prod
  commitslog
  getissues
  getprojects
  jiralogs
  pr
  push
  sendmessage
  test
Package: leonard
leonardProin lacinia metus auctor est posuere, in ornare dui hendrerit. Aliquam eget est gravida, iaculis tortor a, aliquam ligula.Morbi semper metus at egestas vulputate:Nullam viverra nisi vel tellus finibus tincidunt.Pellentesque at velit placerat, gravida eros eu, blandit est.Curabitur id odio et magna semper vestibulum.Donec id lectus ut mi tincidunt commodo et eget risus.MotivationInstallationpipx install leonard

pipx inject --verbose -i https://test.pypi.org/simple/ leonard pytermor --pip-args=-USed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?Usagegrep -lrEe 'leonard' | xargs sed 's/\leonard/xxx/g'
mv PROJECT_NAME xxxAt vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.Et harum quidem rerum facilis est et expedita distinctio.grep --color -rEe '[*]PROJECT_\B'Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae.Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.Changelogv0.0.0yes
Package: leonardo-admin
Django Admin bundled as pluggable module for Leonardo CMS.Everything in Leonardo is pluggable.Disable adminInstallationConfigurationRead MoreDisable adminpipuninstallleonardo-adminInstallationpipinstallleonardo-adminpipinstallleonardo-adminor as leonardo bundlepipinstalldjango-leoanrdo[admin]Addleonardo_adminto APPS list, in thelocal_settings.py:APPS = [
    ...
    'leonardo_admin'
    ...
]ConfigurationOne improtant option is there:ADMIN_URL = "admin/"Works well with leonardo-admin-honeypot.Read Morehttps://github.com/django-leonardo/django-leonardohttp://leonardo.robotice.org
Package: leonardo-admin-dashboard
Admin dashboard for Leonardo CMS built on django-jet. Support custom menu and easy extending with auto registering of new widgets.InstallationConfigurationUsageRead MoreInstallationpipinstallleonardo-admin-dashboardConfigurationThis module requiresdashboard_menuitem inLEONARDO_CONF_SPEC:LEONARDO_CONF_SPEC = {
    'dashboard_menu': []
}Optionaly you can add dashboard widgets:LEONARDO_CONF_SPEC = {
    'dashboard_widgets_available': [],
    'dashboard_widgets': []
}UsageAdd your menu items intodashboard_menuarray as string path to your menu:dashboard_menu = ['leonardo_store.menu.store_menu']For menu items use modules fromleonardo_admin_dashboard.modules:from leonardo_admin_dashboard import modules

store_menu = modules.SubMenuLinkList(
    _('Store'),
    children=[{
                'title': 'Catalogue',
                'url': reverse('catalogue'),
                'external': False,
                'icon': 'icon-book'
                }],
)For more examples seemenu.pyor visitdjango-admin-toolsanddjango-jetdocumentations.Read Morehttps://github.com/django-leonardo/django-leonardohttps://github.com/geex-arts/django-jet
Package: leonardo-admin-honeypot
Admin Honeypot based on @dmpaytonhttps://github.com/dmpayton/django-admin-honeypotbut without storing events to db. Just simple raise errors which send emails or handle it in sentry.InstallationUsingRead MoreInstallationpipinstallleonardo-admin-honeypotUsingYou have two options how use honeypot, in default state is automaticaly loaded under configured url. If you needit you can spawn it to any url pattern as FeinCMS application.Read Morehttps://github.com/django-leonardo/django-leonardohttps://github.com/dmpayton/django-admin-honeypot
Package: leonardo-admin-sso
Simple Admin SSOThanks for Mathias work, see his fork ofdjango admin SSODependenciesInstallationUsageAssignmentsAny Remote User -> Local User XRemote User -> Local UserRead MoreDependenciesdjango-admin-sso2Installationpipinstallleonardo-admin-ssoUsageNavigate to Google’sDeveloper Console, create a
new project, and create a new client ID under the menu point “APIs & AUTH”,
“Credentials”. The redirect URI should be of the formhttp://example.com/admin/admin_sso/assignment/end/Run./manage.py migrateto create the needed database tables.Log into the admin and add an Assignment.AssignmentsAny Remote User -> Local User XSelect Username mode “any”.Set Domain to your authenticating domain.Select your local user from the User drop down.Remote User -> Local UserSelect Username mode “matches”or“don’t match”.Set username to [not] match by.Set Domain to your authenticating domain.Select your local user from the User drop down.Read Morehttps://github.com/django-leonardo/django-leonardohttps://github.com/matthiask/django-admin-sso
Package: leonardo-api
This is Leonardo.ai API.This package contains Python API forLeonardo.aibased on officialAPI documentation.To install the package, please use package frompypi:pipinstallleonardo-apiThis Python API provides access to Leonardo API using synchronous methods (based on requests library) as well as asynchronous (aiohttp). You can choose one of them -LeonardoorLeonardoAsync.To start, you must have paid subscription and create an API access token from yousettings page->User API. Then, init manager class with using your access_token:fromleonardo_apiimportLeonardoleonardo=Leonardo(auth_token='abcd-1234-5678-90ef-deadbeef00000')Now you can use all API methods, provided by Leonardo.ai API, i.e. starting getting user info and generating your first image:response=leonardo.get_user_info()# get your user inforesponse=leonardo.post_generations(prompt="The quick brown fox jumps over the lazy dog",num_images=1,negative_prompt='schrodinger cat paradox',model_id='e316348f-7773-490e-adcd-46757c738eb7',width=1024,height=768,guidance_scale=7)In according to API reference, you will get the json answer with content about pending job like following:{"sdGenerationJob":{"generationId":"123456-0987-aaaa-bbbb-01010101010"}}To obtain your image you need to use additional method:response=leonardo.get_single_generation(generation_id)# get it using response['sdGenerationJob']['generationId']Or, optionally, you may wait for job completion using following method:response=leonardo.wait_for_image_generation(generation_id=response['sdGenerationJob']['generationId'])Finally, you'll get your array of images:[{'url':'https://cdn.leonardo.ai/users/abcd-1234-5678-90ef-deadbeef00000/generations/123456-0987-aaaa-bbbb-01010101010/Absolute_Reality_v16_The_quick_brown_fox_jumps_0.jpg','nsfw':False,'id':'aaaaaa-bbbb-cccc-dddd-ffffffffff','likeCount':0,'generated_image_variation_generics':[]}]You'll find descriptions for rest of the methods in officialAPI reference.As option, you may want to use preloaded dicts with models (nsfw/community/platform):fromleonardo_apiimportplatform_models,custom_models,nsfw_modelsWhich contains details of models like following:{"data":{"custom_models":[{"id":"f1929ea3-b169-4c18-a16c-5d58b4292c69","name":"RPG v5",# rest of the model data}# rest models]}}Have fun and enjoy!DonationsIf you like this project, you can support it by donating viaDonationAlerts.
Package: leonardo-auth-ldap
==========================Leonardo leonardo-auth-ldap==========================Leonardo LDAP authentication backend.. contents:::local:Installation------------.. code-block:: bashsudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-devpip install leonardo-auth-ldapConfigure---------Add your settings into your ``site/settings.py`` or ``local_settings.py``.. code-block:: pythonimport ldapfrom django_auth_ldap.config import LDAPSearch, GroupOfNamesType# Baseline configuration.AUTH_LDAP_SERVER_URI = "ldap://ldap.example.com"AUTH_LDAP_BIND_DN = "cn=django-agent,dc=example,dc=com"AUTH_LDAP_BIND_PASSWORD = "phlebotinum"AUTH_LDAP_USER_DN_TEMPLATE = "uid=%(user)s,ou=users,dc=example,dc=com"# Set up the basic group parameters.AUTH_LDAP_GROUP_SEARCH = LDAPSearch("ou=django,ou=groups,dc=example,dc=com",ldap.SCOPE_SUBTREE, "(objectClass=groupOfNames)")AUTH_LDAP_GROUP_TYPE = GroupOfNamesType()# Simple group restrictionsAUTH_LDAP_REQUIRE_GROUP = "cn=enabled,ou=django,ou=groups,dc=example,dc=com"AUTH_LDAP_DENY_GROUP = "cn=disabled,ou=django,ou=groups,dc=example,dc=com"# Populate the Django user from the LDAP directory.AUTH_LDAP_USER_ATTR_MAP = {"first_name": "givenName","last_name": "sn","email": "mail"}AUTH_LDAP_USER_FLAGS_BY_GROUP = {"is_active": "cn=active,ou=django,ou=groups,dc=example,dc=com","is_staff": "cn=staff,ou=django,ou=groups,dc=example,dc=com","is_superuser": "cn=superuser,ou=django,ou=groups,dc=example,dc=com"}# Use LDAP group membership to calculate group permissions.AUTH_LDAP_FIND_GROUP_PERMS = True# Cache group memberships for an hour to minimize LDAP trafficAUTH_LDAP_CACHE_GROUPS = TrueAUTH_LDAP_GROUP_CACHE_TIMEOUT = 3600Read More=========* https://github.com/django-leonardo/django-leonardo
Package: leonardo-bootstrap-admin
Compatibility layer beetweendjango-admin-bootstrapand Leonardo CMS / FeinCMSInstallationDisable adminRead MoreInstallationpipinstallleonardo-bootstrap-adminDisable adminpipuninstallleonardo-bootstrap-adminRead Morehttps://github.com/django-admin-bootstrap/django-admin-bootstraphttps://github.com/django-leonardo/django-leonardohttp://leonardo.robotice.org
Package: leonardo-celery
This module provide worker for hard work around periodical syncing and updating caches, sending emails or whatever you need do asynchronously.InstallationSettingsStart workerSyncing stateUse smart cachingRead MoreInstallationpipinstallleonardo-celerypipinstalldjango-leonardo[celery]SettingsBROKER_URL='redis://localhost:6379/0'BROKER_URL='amqp://user:password@127.0.0.1:5672/leonardo'Set custom scheduler and result backendCELERY_RESULT_BACKEND='djcelery.backends.database:DatabaseBackend'CELERYBEAT_SCHEDULER="djcelery.schedulers.DatabaseScheduler"Start workerpythonmanage.pyceleryworker-B-ESyncing stateFor syncing state to databse runcelerycampythonmanage.pycelerycamTasks are discovered by standard mechanism:app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)Use smart cachingUsecachebackjobs for fetching data asynchronously.pipinstallleonardo-celery[cacheback]Define your jobs. More about Jobshttp://django-cacheback.readthedocs.org/en/latest/usage.html#as-an-instance-of-cacheback-jobRead Morehttps://celery.readthedocs.org/en/release21-maint/userguide/monitoring.html#starting-the-monitorhttp://celery.readthedocs.org/en/latest/index.htmlhttps://github.com/django-leonardo/django-leonardohttps://github.com/michaelkuty/django-cachebackhttp://django-cacheback.readthedocs.org/en/latest/usage.html#as-an-instance-of-cacheback-job
Package: leonardo-channels
Channels for Leonardo CMS. As an example this module has implemented django-messages.InstallationIntegrateRead MoreInstallationpipinstallleonardo-channelsIntegratevarbasepath="ws://"+window.location.hostname+":"+window.location.port;socket=newWebSocket(basepath+"/messages?session_key={{ request.session.session_key }}");/* Bind django-messages */socket.onmessage=function(e){msg=JSON.parse(e.data)horizon.alert(msg.level,msg.message,msg.extra_tags)}Use from pythonfromleonardo_channelsimportrouterrouter.route("websocket.connect",ws_add)router.include("websocket.myroutes",path=r"/chat")Use channels for messagesfromleonardo_channels.messagesimportadd_messageadd_message(user,level,message)Read Morehttps://github.com/django-leonardo/django-leonardo
Package: leonardo-constance
Constance - Dynamic Django settings===================================This is adopted version of standard library for Leonardo CMS.Additionaly features:* boolean, numbers, strings, dictionaries* support for Django 1.8 +* basic grouping via ``CONSTANCE_CONFIG_GROUPS`` which makes tabs for django admin* access to config keys from standard django settings* really live settings, set every value to django settings and respect the default value from them.. code-block:: pythonCONSTANCE_CONFIG = {'MEDIA_ENABLED': (True, 'Help Text'),'MEDIA_THUMBNAILS': ({'SMALL': '64x64','MEDIUM': '265x265',}, 'Help Text')}.. code-block:: pythonCONSTANCE_CONFIG_GROUPS = {'Group 1': {MY_AWESOME_KEY: ('default', help text)}}.. code-block:: pythonfrom django.conf import settingssettings.MY_AWESOME_KEYsettings.py.. code-block:: pythonDEBUG = TrueCONSTANCE_CONFIG_GROUPS = {'Group 1': {DEBUG: (False, help text)}}from django.conf import settingssettings.DEBUG-> Trueafter setting up value in the admin to False::from django.conf import settingssettings.DEBUG-> FalseIf you can add your custom field types, you can use the`CONSTANCE_ADDITIONAL_FIELDS` variable. Note that you mustuse later evaluated strings instead of direct classes:.. code-block:: pythonCONSTANCE_ADDITIONAL_FIELDS = {'yes_no_null_select': ['django.forms.fields.ChoiceField',{'widget': 'django.forms.Select','choices': (("-----", None), ("yes", "Yes"), ("no", "No"))}],}CONSTANCE_CONFIG = {'MY_SELECT_KEY': ('yes', 'select yes or no', 'yes_no_null_select'),}.. image:: https://secure.travis-ci.org/jezdez/django-constance.png:alt: Build Status:target: http://travis-ci.org/jezdez/django-constanceA Django app for storing dynamic settings in pluggable backends (Redis andDjango model backend built in) with an integration with the Django admin app.For more information see the documentation at:http://django-constance.readthedocs.org/If you have questions or have trouble using the app please file a bug reportat:https://github.com/jezdez/django-constance/issues
Package: leonardo-cookie-law
leonardo-cookie-law integrates django-cookie-law helps to your Leonardo project comply with the EU cookie regulations. by displaying a cookie information banner until it is dismissed by the user.InstallationConfigurationRead MoreInstallationpipinstallleonardo_cookie_lawor as leonardo bundlepipinstalldjango-leonardo["cookielaw"]Collect assetspythonmanage.pycollectstatic--noinputConfigurationIf you want to use our default template, addcookielaw/css/cookielaw.cssto the markup and you should see the cookie law banner at the top of the page until you dismiss it with the button in the top-right. This CSS is Twitter Bootstrap compatible, but chances are, you’ll like to adjust it anyway.To change the markup, just add a template namedcookielaw/banner.htmland make sure it is loaded before the default template (for example put the django.template.loaders.filesystem.Loader before django.template.loaders.app_directories.Loader and add your new template to any of the TEMPLATE_DIRS).To change the CSS, just write your own rules and don’t include the default stylesheet.Read Morehttps://github.com/TyMaszWeb/django-cookie-law