Saravanan666/pypi-org huggingface dataset:
Package: leonardo-theme-bootswatch
Bootswatchhttp://bootswatch.com/bundled as Leonardo theme.Installationpipinstallleonardo-theme-bootswatch# or as extraspipinstalldjango-leonardo[bootswatch]No next steps reuires, Leonardo automaticaly detects this theme and adds it toINSTALLED_APPS, but if you want, you could do this# leonardo appsAPPS+=['leonardo_theme_bootswatch']# or Django appsINSTALLED_APPS+=['leonardo_theme_bootswatch']After installation don’t forget runsync_allcommand.pythonmanage.pysync_allRead Morehttps://github.com/django-leonardo/django-leonardohttp://django-leonardo.readthedocs.org/en/develop/overview/modules.html
Package: leonardo-translations
Integration of django-rosetta which eases the translation process of your Django projects.FeaturesInstallationSecurityRead MoreFeaturesDatabase independentReads and writes your project’s gettext catalogs (po and mo files)Installed and uninstalled in under a minuteUses Django’s admin interface CSSInstallationpipinstallleonardo-translationspipinstalldjango-leonardo[translations]Navigate your browser to/admin/rosetta/SecurityBecause Rosetta requires write access to some of the files in your Django project, access to the application is restricted to the administrator user only (as defined in your project’s Admin interface)If you wish to grant editing access to other users:Create a ‘translators’ group in your admin interface
Add the user you wish to grant translating rights to this groupRead Morehttps://github.com/django-leonardo/django-leonardohttps://github.com/mbi/django-rosetta
Package: leonhard
LeonhardA commons library for Project Euler problems.RequirementsPython 3.xInstallationpip install leonhardUsage>>>fromleonhardimportleonhard>>>print(leonhard.get_factors_of_positive_integer(10))[1,2,5,10]Functionalitiesget_factors_of_positive_integer: Gets the factors of a given positive integergenerate_fibonacci_sequence: Generates a Fibonacci sequenceis_prime: Checks if a number is prime or notis_pythagorean_triplet: Checks if a^2 + b^2 = c^2 where a < b < ccount_digits: Counts the number of digits of a given numbergenerate_collatz_sequence: Generates a collatz sequencegenerate_cyclic_permutation: Generates the list of cyclic permutation of a given numberis_triangle_number(): Checks if a number is triangular or notSamplesSample files are found insamples/
Package: leo-optimizer
Leo OptimizerThis Django plugin allows you to optimize SQL queries and solveN+1bottleneck for queries resolved in GraphQL, as well as in admin pages.Installpipinstallleo-optimizerContextLet's say that the business context that you are modeling is around the concept of a city. You modeled your solution following way:City has one mayorCity has many districtsCity belong to one stateState is in the countryCountry is located in a continentOutcome of these relations allows you to build a complex GraphQL query that might look like this.query CityQuery {
  allCities{
    mayor {
      city {
        name
      }
    }
    state {
      country {
        continent {
          name
        }
      }
    }
    district {
      city {
        mayor {
          city {
            district {
              name
            }
          }
        }
      }
    }
  }
}ProblemThe problem is that if you didn't useselect_relatedandprefetch_relatedon the model that you are resolving then by default you will getN+1problem.SolutionYou can fix this problem by importinggql_optimizerfunction fromleo_optimizerpackage.In your GraphQL resolver, wrap your model along with FiledNode that you would like to resolve against and return Django QuerySet. Your code should look like the code below.fromleo_optimizerimportgql_optimizerfromapp.modelsimportCitydefresolve_all_city(self,info):queryset=gql_optimizer(City.objects.all(),info.field_nodes[0])returnquerysetAdminAutomatically generated django admin pages suffer from the sameN+1problem. To solve slow loading admin pages you can importQuickAdminclass in youradmin.pyfile as shown on the example below.fromdjango.appsimportappsfromdjango.contribimportadminfromleo_optimizerimportQuickAdminformodelinapps.get_app_config("name_of_your_application").get_models():admin.site.register(model,QuickAdmin)
Package: leopaolucci-photoalbum
leopaolucci-photoalbumDescriptionThe package leopaolucci-photoalbum is used to:is used to assemble a photo album based on images available in a directory of the user's choice. The images are converted to the standard "pdf", saved in a file in a directory of the user's choice.InstallationUse the package manager "pip" to install leopaolucci-photoalbum.​pip install leopaolucci-photoalbumUsageAfter installing the package, thephotoalbumcommand will be available on the command line.This command calls the modulemain.py.AuthorLeopoldo Augusto PaolucciLicenseThis project is under the MIT license.Open the [LICENSE] file in your package directory for more details.
Package: leopardi
LeopardiAn extensible library for generating 3D synthetic data with Blender that just works.Requires Python >= 3.0, Blender >= 2.80Leopardi aims to make it easy to create robust synthetic images by importing scenes into Blender. It takes care of the boring, strenuous, and difficult stuff so that you can devote your time to training and evaluating your machine learning models.NOTE: Leopardi is currently in a pre-alpha change. Breaking changes (though unlikely) may occur.BackgroundsBackgrounds are imported from a specified directory (which defaults to ./backgrounds/) and merges them with the rendered image.CameraThe Leopardi Camera extends Blender's default camera with a variety of options for choosing camera location, lens size, sensor size, and more.ModelsSimilarly to backgrounds, models are imported from a specified directory (which defaults to ./models/) and are used to render a synthetic image.RendererThe renderer allows for specifying which labels to generate to accompany an image, which Blender rendering engine to use, as well as the resolution of the rendered images.ExamplesBelow is a dead-simple demonstration of working with Leopardi on Windows to generate a single render.importleopardiBLENDER_DIR="C:\Program Files\Blender Foundation\Blender 2.92"camera=leopardi.LeopardiCamera()lighting=leopardi.LeopardiLighting()renderer=leopardi.LeopardiRenderer()model_loader=leopardi.ModelLoader()background_loader=leopardi.BackgroundLoader()engine=leopardi.Leopardi(camera,lighting,renderer,background_loader,model_loader)engine.render(1)If we want to include a depth map and YOLO annotations with our renders, we do so as belowimportleopardiBLENDER_DIR="C:\Program Files\Blender Foundation\Blender 2.92"camera=leopardi.LeopardiCamera()lighting=leopardi.LeopardiLighting()renderer=leopardi.LeopardiRenderer(labels=["DEPTH","YOLO"])model_loader=leopardi.ModelLoader()background_loader=leopardi.BackgroundLoader()engine=leopardi.Leopardi(camera,lighting,renderer,background_loader,model_loader)engine.render(1)
Package: leopardo
leopardoProin 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 leopardoSed 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 'leopardo' | xargs sed 's/\leopardo/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: leopold
LeopoldBusiness Ready Documents for Cisco Network Services OrchestratorCurrent API CoverageDevice GroupsDevicesInstallation$python3-mvenvnso$sourcenso/bin/activate(nso)$pipinstallleopoldUsage - Help(nso)$leopold--helpUsage - In-line(nso)$leopold--url<urltoNSO>--username<NSOusername>--password<NSOpassword>Usage - Interactive(nso)$leopoldNSO URL: <URL to NSO>NSO Username: <NSO Username>NSO Password: <NSO Password>Usage - Environment Variables(nso)$exportURL=<URLtoNSO>(nso)$exportUSERNAME=<NSOUsername>(nso)$exportPASSWORD=<NSOPassword>Recommended VS Code ExtensionsExcel Viewer - CSV FilesMarkdown Preview - Markdown FilesMarkmap - Mindmap FilesOpen in Default Browser - HTML FilesContactPlease contact John Capobianco if you need any assistance
Package: leoprofanity
LeoProfanityPython version ofleo-profanity, "Shutterstock" dictionary based filter.Installationpip install leoprofanity

# or
git clone https://github.com/jojoee/leo-profanity-python
cd leo-profanity-python
python setup.py installUsageCLIpython-mleoprofanity"I have boob"PythonfromleoprofanityimportLeoProfanity# example usagefil=LeoProfanity()fil.check("I have BoOb, etc.")# Truefil.clean("I have BoOb, etc.")# 'I have ****, etc.'# return all profanity words (List[str])fil.list()# remove word form the listfil.remove_word("boob")# check whether the string contains profanity word or notfil.check("Buy classic watches online")# Falsefil.check("I have BoOb.")# True# clean or replace profanity word in a stringfil.clean("I have boob, etc.")# "I have ****"fil.clean("I have boob,boob, ass, and etc.")# "I have ****,****, ***, and etc."fil.clean("I have boob","+")# "I have ++++"fil.clean("Buy classic watches online")# "Buy classic watches online"# add new word(s)fil.add("b00b")fil.add(["b@@b","b##b"])# remove word(s) from the listfil.remove("boob")fil.remove(["boob","boobs"])# reset word list by using en dictionaryfil.reset()# remove all words inside an existing listfil.clear_list()# return word list from dictionaryfil.get_dictionary()# returns "en" word listfil.get_dictionary("en")# reset word list by using en dictionaryfil.load_dictionary()fil.load_dictionary("en")Contribution# env
conda env list
conda create --name leoprofanity python=3.7

# test
python -m unittest tests/*.py # run unit test

# format
flake8 --max-line-length=120 --exclude=__*.py
black . --check
pytype ./leoprofanity

# publishing
pip install twine # package for publishing
python setup.py sdist bdist_wheel # build the package
tar tzf dist/leoprofanity-0.0.1.tar.gz # check published file in the published package
twine check dist/* # if the package render correctly
python -m pip install dist/leoprofanity-0.0.1-py3-none-any.whl # for testing, install local to global
python -m leoprofanity "I have boob, etc." # testing the package via cli
twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose # publishing (test)
twine upload dist/* # publishing
pip install leoprofanity -U # force update module to test after publishing
Package: leosdk
LeoPlatform/PythonLeo Python SDKA Python interface to interact with the Leo PlatformDocumentation:https://docs.leoplatform.ioPython versions supported: 3.6Installationmake sure the awscli is installed:https://docs.aws.amazon.com/cli/latest/userguide/installing.htmland configured:https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#Install the boto3
pip3.6 install boto3
Package: leo-vnpy-ctp
VeighNa框架的CTP底层接口改动过，针对rpc做扩展支持远程rpc到server，查询米筐数据除了get_contract_option方法自定义了，其他方法和米筐使用方式一样需要手动装下talibfrom client_server.rpc import RpcCli
cli = RpcCli()
df = cli.rpc.get_contract_property(order_book_ids=['10002752'], start_date='20200101',end_date='20210118')
cli.rpc.get_price('000001.XSHE', start_date='2015-04-01', end_date='2015-04-03', adjust_type='none',expect_df=True)


cli.init_backtester()
filter = {"ma_param":60}
cli.load_local_data(table_name='symbol_ma', filter=filter)说明基于CTP期货版的6.6.7接口封装开发，接口中自带的是【穿透式实盘环境】的dll文件。安装安装环境推荐基于3.3.0版本以上的【VeighNa Studio】。直接使用pip命令：pip install vnpy_ctp或者下载源代码后，解压后在cmd中运行：pip install .使用源代码安装时需要进行C++编译，因此在执行上述命令之前请确保已经安装了【Visual Studio（Windows）】或者【GCC（Linux）】编译器。使用以脚本方式启动（script/run.py）：from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp

from vnpy_ctp import CtpGateway


def main():
    """主入口函数"""
    qapp = create_qapp()

    event_engine = EventEngine()
    main_engine = MainEngine(event_engine)
    main_engine.add_gateway(CtpGateway)
    
    main_window = MainWindow(main_engine, event_engine)
    main_window.showMaximized()

    qapp.exec()


if __name__ == "__main__":
    main()
Package: lep-downloader
AboutLEP Downloader is a script for downloading the all FREE episodes ofLuke’s ENGLISH Podcast.It lets you to get all audio files (including audio tracks to video episodes)
and also PDF files for each episode page.Even though this script was written for convenient episode downloading,
I don’t want to financially harm Luke in any way.
I just want to make my life a bit easier (as usual for lazy IT person =).
So considerdonatingto Luke’s English Podcast andbecominghis premium subscriber.
And of course, subscribe on hisYouTube channel.Read the full documentationon website.🚀 FeaturesDownload a range of episodes filtering by episode number or by episode dateDownload only the last episodeDownload PDF files of episodes web pagesSaving files to specified folder on your hard / solid / flash driveRunning script in quiet mode for automated routineWriting log file in debug mode🛠️ RequirementsPython 3.8+Internet connection💻 InstallationYou can installLEP DownloaderviapipfromPyPI:pip install lep-downloaderI do recommend you to usepipxfor any CLI Python package.
It let you install and run Python applications in isolated environments.python -m pip install --user pipx
pipx install lep-downloader
lep-downloader --help🕹 Usagelep-downloader -ep 758You can also use the short script name:lep-dl --lastPlease see theUsage Examplesfor details.Or skim theMan Pagefor available options
(if terminal is your best friend).✨ What’s new in version 3The third version was completely re-written by me (again).
But this time with more fundamental and mature approach.
I applied some OOP (object-oriented programming) principles
and covered almost all functions with absolutely isolated unit tests.Code base became more extendable and maintainable(I believe).
I dropped support for file naming from old script versions.
Also I removed (for awhile) video and add-ons download(I plan to add them again in the future, however - no any promises).Archive parsing was improved (without skipping several episodes).
Also I added built-in possibility to download files from reserve server,
if primary link is not available (for any reason).And many internal little things.
You can read descriptions of pre-releases onReleasespage (if you wish).✊ ContributingContributions are very welcome.
To learn more, see theContributor Guide.📝 LicenseDistributed under the terms of theMIT license,LEP Downloaderis free and open source software.
It means you can modify it, redistribute it or use it however you like
as long as you do mention the author of the original script.🐞 IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.🙏🏻 CreditsThis project was generated from@cjolowicz’sHypermodern Python Cookiecuttertemplate.Script uses the following packages / libraries under the hood:click(BSD-3-Clause License)requests(Apache-2.0 License)beautifulsoup4(MIT License)lxml(BSD-3-Clause License)loguru(MIT License)single-source(MIT License)and other amazing Python packages for development and testing.
See a full list of them in ‘dependencies’ section ofpyproject.tomlfile.
Package: lepor
LEPOR: A Robust Evaluation Metric for Machine Translation with Augmented FactorsThis repo contains code for a machine translation evaluation metric named LEPOR.Note: The code for LEPOR is not available in python yet. The plan is to implement all the variations on LEPOR and publish it as a package. There is also possibility of intigrating it to NLTK or other NLP libraries.If you have any suggestions or want to contribute. Create an issue and generate a PR.ReferencesHan, A. L. F., Wong, D. F., & Chao, L. S. (2012).LEPOR: A Robust Evaluation Metric for Machine Translation with Augmented Factors(pp. 441–450). https://aclanthology.org/C12-2044
Package: leppard
leppardYes, this exists solely as an excuse for me to write the linedef leppard():and have it run.Almost disappointed that nobody's made this joke already...Installingpip install leppardUsingRunimport leppardin your REPL of choice and watch the :sparkles: magic :sparkles: happen...(Actually using this)I think this is a decent python package name and I don't think it should just be a joke/placeholder package forever.I've been sitting on the name for a while and haven't come up with a decent use for it yet. If you have a good one, let me know and I'll happily hand over the reins!
Package: leprikon
Leprikón is web information system for leisure centres and other educational organizations.www.leprikon.czDocker imageInstallation with pip# create and enter an empty directory of your choicemkdirleprikon&&cdleprikon# create and activate virtual environmentvirtualenvenv.env/bin/activate# install leprikon with all the requirementspipinstallleprikon# create databaseleprikonmigrate# create admin userleprikoncreatesuperuser# run development server./manage.pyrunserver
Package: lepsen-core
Lepsen CoreData pack utility library packaged as aBeetplugin.Example Beet ConfigurationNote that any directly required feature must be manually specified for it to be included in the generated data pack.
Implicit dependencies of a required feature will be loaded automatically, however, so users of the tick scheduler or forceloaded chunk need not enable themainfeature.pipeline:-lepsen.coremeta:lepsen:main:trueforceload:truetick_scheduler:trueplayer_head:truedata_pack:name:Exampleload:["src/*"]Data Pack InitializationThis pack usesLantern Load, but the recommended way to check for correct pack initialization is throughcompatibility flags.
The benefit of this approach is that a new major version may not break usage of a feature, making this a more flexible way of checking for successful dependency loading.An example of minimal initialization of this pack is as follows (including the correct way to check for compatibility flags).@function_tag(merge) load:load{"values":[{"id":"#lepsen:core/load","required":false},"example:load"]}@function example:loadexecuteifscore#lepsen_core.compatload.statusmatches1ifdatastoragelepsen:corecompat{objectives:1,forceload:1}runfunctionexample:init@function example:init# Indicate that the plack was successfully loaded.scoreboardplayerssetexample_packload.status1# Pack initialization logic.# ...LicenseLepsen Core is made freely available under the terms of the0BSD License.
Third-party contributions shall be licensed under the same terms unless explicitly stated otherwise.
Package: lepton
Lepton is designed to make complex and beautiful particle effects possible,
and even easy from Python programs.Lepton provides the following core features:Native-code core for high-performance particle dynamics and renderingPluggable particle controllers for specifying particle behaviorTwo pluggable OpenGL renderers, and two pygame renderersSpacial domains, used to control particle emission and behaviorEasy to use and powerful texture support, including animationModular architecture that lets you easily configure and customize the engineThe code includes several examples of how you can use the engine (using
pyglet, and pygame). Note the engine itself does not depend on any other 3rd-party
libraries and simply requires the application to setup an OpenGL context in
order to render particles.You can download binary releases or browse the source code at our Google code site.
Package: lepy
Light EngineLightweight and fast 3D visualisation engine writen onC++withPythonbindings.Using shaders for speedup rendering processCascade architecture for working from hight to low levelAutomated shaders, buffers and other resourcesCollection of predefined objects and controlsInstallationpip install lepyGetting startedBasic usage samples places insamplesfolder. There you can find C++ and Python examples.
Package: le-pycaption
PLEASE SEEpbs/pycaptionFOR OFFICIAL RELEASES.pycaptionis a caption reading/writing module. Use one of the given Readers
to read content into a CaptionSet object, and then use one of the Writers to
output the CaptionSet into captions of your desired format.Version 2.0.0@learningequality passes all tests with Python 2.7, 3.4, 3.5, 3.6, and 3.7.For details, see thedocumentation.Changelog2.2.0@learningequalityAddedenum_compatlibrary to maintain Python 2.7 supportPinnedbeautifulsoup4underv4.9.0as it caused numerous test failuresUnpinnedlxmlMisc Travis and Tox updates2.0.0@learningequalityPython 2 and 3 support (see branchpy27@pbs)Upgradedbeautifulsoup4package to a more current version, and resolved issues with tests due to upgrade. See full detailed changeshere.Removedfrom future import standard_libraryas it can cause issues with other packages and its removal causes no test failures.FixedDFXPReaderissue with default language (seethis PR)Changed global default language to ISO-639-2 undetermined language codeund(seethis PR)1.0.0@pbsAdded Python 3 support (seepbs/pycaption).0.5.x@pbsAdded positioning supportCreated documentationLicenseThis module is Copyright 2012 PBS.org and is available under theApache
License, Version 2.0.