Saravanan666/pypi-org huggingface dataset:
Package: lonelyconnect
LonelyConnectThis is a fan-made implementation of the BBC quiz show OnlyConnect. It
allows you to write your own riddles and host your own show at home. For partly
technical and partly gameplay reasons, round 3 (the connecting wall) is not
implemented.In case this isn't clear enough yet: This repository is not associated with the
show at all, and no assets (images, audio, ...) of the original show are used.UsageStart the uvicorn app, e.g. viauvicorn lonelyconnect:appIt will print out an admin code. Alternatively, you can set the environment
variablelonelyconnect_admin_code.LonelyConnect requires 4 "devices" (browser tabs):One connected to the admin interface (for the quiz master)Two for the teams (one each), showing the buzzersOne for the "stage"; this could be projected on a large screen, it shows
public information and requires no authentication.To connect to anything but the stage, just go to the root path (/), by
default on port 8000. This will present you with a large text input, in which
you can enter the authentication code. The admin code is obtained as described
above, the codes for the two buzzers can be retrieved via the admin interface.The stage is available at/ui/stage.Once everyone is connected, you can test the buzzers by setting the buzz mode
manually via the admin interface. During the course of a normal game, the buzz
state (who is allowed to buzz/who has buzzed) will be automatically set through
the game logic.To start a game, the admin can load a game file.Afterwards, the admin interface is usable through numeric keyboard shortcuts (as displayed on the dashboard).
Package: lonely-silhouette
いや待て、この孤独な𝑆𝑖𝑙ℎ𝑜𝑢𝑒𝑡𝑡𝑒は…？Installationpip install lonely-silhouetteUsagefromlonely_silhouetteimportlonely_silhouetteprint(lonely_silhouette("いや待て、この孤独なシルエットは…？"))# いや待て、この孤独な𝑠𝑖𝑙ℎ𝑜𝑢𝑒𝑡𝑡𝑒は…？print(lonely_silhouette("飛んで火にいる夏の虫"))# 飛んで火にいる夏の𝑖𝑛𝑠𝑒𝑐𝑡print(lonely_silhouette("祇園精舎の鐘の声"))# 祇園精舍の鐘の𝑣𝑜𝑖𝑐𝑒print(lonely_silhouette("諸行無常の響きあり"))# 諸行無常の𝑒𝑐ℎ𝑜ありUsing programmaticallyfromlonely_silhouetteimportlonely_silhouette,FontStyleprint(lonely_silhouette("いや待て、この孤独なシルエットは…？"))# いや待て、この孤独な𝑠𝑖𝑙ℎ𝑜𝑢𝑒𝑡𝑡𝑒は…？print(lonely_silhouette("いや待て、この孤独なシルエットは…？",font_style=FontStyle.SCRIPT))# いや待て、この孤独な𝓈𝒾𝓁𝒽ℴ𝓊ℯ𝓉𝓉ℯは…？Using as CLI$python-mlonely_silhouette"いや待て、この孤独なシルエットは…？"いや待て、この孤独な𝑠𝑖𝑙ℎ𝑜𝑢𝑒𝑡𝑡𝑒は…？$python-mlonely_silhouette--font-stylescript"いや待て、この孤独なシルエットは…？"いや待て、この孤独な𝓈𝒾𝓁𝒽ℴ𝓊ℯ𝓉𝓉ℯは…？LICENSECC0 1.0 Universalsee LICENSE fileAcknowledgementThis package uses the JMdict dictionary file that comes fromthe JMdict/EDICT projectbyElectronic Dictionary Research and Development Group(EDRDG). The dictionary file is licensed underCC BY-SA 4.0by them.
Package: longbridge
Longbridge OpenAPI SDK for Pythonlongbridgeprovides an easy-to-use interface for invokesLongbridge OpenAPI.QuickstartInstall Longbridge OpenAPI SDKpipinstalllongbridgeSetting environment variables(MacOS/Linux)exportLONGBRIDGE_APP_KEY="App Key get from user center"exportLONGBRIDGE_APP_SECRET="App Secret get from user center"exportLONGBRIDGE_ACCESS_TOKEN="Access Token get from user center"Setting environment variables(Windows)setxLONGBRIDGE_APP_KEY"App Key get from user center"setxLONGBRIDGE_APP_SECRET"App Secret get from user center"setxLONGBRIDGE_ACCESS_TOKEN"Access Token get from user center"Quote API(Get basic information of securities)fromlongbridge.openapiimportConfig,QuoteContext# Load configuration from environment variablesconfig=Config.from_env()# Create a context for quote APIsctx=QuoteContext(config)# Get basic information of securitiesresp=ctx.quote(["700.HK","AAPL.US","TSLA.US","NFLX.US"])print(resp)Quote API(Subscribe quotes)fromtimeimportsleepfromlongbridge.openapiimportConfig,QuoteContext,SubType,PushQuote# Load configuration from environment variablesconfig=Config.from_env()# A callback to receive quote datadefon_quote(symbol:str,event:PushQuote):print(symbol,event)# Create a context for quote APIsctx=QuoteContext(config)ctx.set_on_quote(on_quote)# Subscriberesp=ctx.subscribe(["700.HK"],[SubType.Quote],is_first_push=True)# Receive push duration to 30 secondssleep(30)Trade API(Submit order)fromdecimalimportDecimalfromlongbridge.openapiimportTradeContext,Config,OrderType,OrderSide,TimeInForceType# Load configuration from environment variablesconfig=Config.from_env()# Create a context for trade APIsctx=TradeContext(config)# Submit orderresp=ctx.submit_order("700.HK",OrderType.LO,OrderSide.Buy,Decimal("500"),TimeInForceType.Day,submitted_price=Decimal("50"),remark="Hello from Python SDK")print(resp)LicenseLicensed under either ofApache License, Version 2.0,(LICENSE-APACHEorhttp://www.apache.org/licenses/LICENSE-2.0)MIT license (LICENSE-MITorhttp://opensource.org/licenses/MIT) at your option.
Package: long-cli
LongYou can find more about the language isthis blogA simple, elegant, useless, minimal esoteric programming language created for funAn example72+#29+#7+##3+#79-# 55+#24+#3+#6-#8-#68-#1+# ;DocumentationThe documentation is under contructionLicenseThe long programming language is licensed under the MIT license . You can read ithere
Package: longdata
Longevity database agentsLongData is a submodule of longevity-genie devoted to LLM agents that query databasesWhen you start working it is recommended to pip install the local foldermicromambacreate-fenvironment.yaml
micromamиaactivatelongdatato develop locally it is recommended to:pipinstall-e.to run the test questions you can do:pythonmain.py
Package: longdivision
This script can be used as library to split division it to simple steps or as
console script to visualise division.Example usage as command line script:$ python3 -m longdivision 1/3
_1 / 3 = 0.3333
 0  <- 0 * 3
 -
_10
  9  <- 3 * 3
 --
 _10
   9  <- 3 * 3
  --
  _10
    9  <- 3 * 3
   --
   _10
     9  <- 3 * 3
    --
     1

$ python3 -m longdivision 6359/17
_6359 / 17 = 374.0588
 51  <- 3 * 17
 --
_125
 119  <- 7 * 17
 ---
  _69
   68  <- 4 * 17
   --
   _10
     0  <- 0 * 17
    --
   _100
     85  <- 5 * 17
    ---
    _150
     136  <- 8 * 17
     ---
     _140
      136  <- 8 * 17
      ---
        4Example usage as library:>>> import longdivision
>>> list(longdivision.divide_integer_part(5, 2))
[(5, 4, 2, 1)]
>>> list(longdivision.divide_integer_part(1, 3))
[(1, 0, None, 1)]
>>> list(longdivision.divide_fractional_part(1, 3))
[(10, 9, 3), (10, 9, 3), (10, 9, 3), (10, 9, 3)]divide_integer_partIterates over all division steps providingreminder,quotient,result_digit,numerator_position.divide_fractional_partiterates over fractional part. Each iteration returns same results asdivide_integer_partescape lastnumerator_position. Reminder
argument for this function must be taken from lastdivide_integer_partiteration.
Package: longest-increasing-subsequence
Longest Increasing SubsequenceFind the longest increasing or decreasing subsequence of a sequence.Install with:pip install longest-increasing-subsequenceUsage:fromlongest_increasing_subsequenceimport(longest_increasing_subsequence,longest_decreasing_subsequence,longest_increasing_subsequence_indices)longest_increasing_subsequence([0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])# [0, 2, 6, 9, 11, 15]longest_increasing_subsequence([0,0,1,2,3,2,1,0,0])# [0, 0, 1, 2, 2]longest_decreasing_subsequence([0,0,1,2,3,2,1,0,0])# [3, 2, 1, 0, 0]longest_increasing_subsequence([0,0,1,2,3],strict=True)# [0, 1, 2, 3]longest_increasing_subsequence(['A','B','CC','D','EEE'],key=len)# ['A', 'B', 'D', 'EEE']"".join(longest_increasing_subsequence('aababbbdccddd'))# 'aaabbbccddd'longest_increasing_subsequence_indices([0,0,1,2,3,2,1,0,0])# [0, 1, 2, 3, 5]Free software: MIT licenseDocumentation:https://longest-increasing-subsequence.readthedocs.io.FeaturesWorks with arbitrary sequence types (list, tuple, str, numpy array, pandas series, etc.)Works with arbitrary comparable elements (anything that has < and >).Can compute increasing or decreasing subsequences.Can compute strictly increasing or strictly decreasing subsequences.Can compare elements by an optional key function (e.g. compare strings by length).Can return the subsequence or the indices of the subsequence.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-02-15)First release on PyPI.
Package: longestrunsubsequence
Longest Run SubsequenceImplementation of a solver for the Longest Run Subsequence Problem. Given a
sequence as input, compute a longest subsequence such that there is at most
one run for every character.ExampleA longest run subsequence of the stringccbcbbbdaadddiscccbbbaaddd.AlgorithmsDepending on the properties of an instance the solver uses one of two algorithms to solve the problem.
For long strings with small alphabets a dynamic
programming approach is used, while short strings with large alphabets are
solved via Integer Linear Programming. Every input instance is processed by
reduction rules first to split it into smaller instances, if possible. Details can be found in [1].
Please consider citing this paper if you find the implementation useful for your work.InstallationThe Integer Linear Program algorithm is only available if PuLP is
installed on the system. PuLP is a free API for modelling linear programs
and available on PyPI or conda.UsageTo solve Longest Run Subsequence instances, the functionlrshas to be
imported from the module.Example code::from longestrunsubsequence import lrs
print(lrs('ccbcbbbdaaddd'))
> [0, 1, 3, 4, 5, 6, 8, 9, 10, 11, 12]The output is a list of indices, which represent the elements of the longest
subsequence. The input can be a string or a list with arbitrary elements.References[1] Schrinner, S., Goel, M., Wulfert, M., Spohr, P., Schneeberger, K., Klau, G.W.: The Longest Run Subsequence Problem.
In: Kingsford, C., Pisanti, N. (eds.) 20th International Workshop on Algorithms in Bioinformatics (WABI 2020).
Leibniz International Proceedings in Informatics (LIPIcs), vol. 172, pp. 6–1613. Schloss Dagstuhl–Leibniz-Zentrum für Informatik, Dagstuhl, Germany (2020). doi:10.4230/LIPIcs.WABI.2020.6.https://drops.dagstuhl.de/opus/volltexte/2020/12795
Package: longevity_factors_by_country
longevity_factors_by_countryThis package provides data on various factors that surround and potentially influence longevity by country. Data includes the average lifespan, healthcare expenditure, by country, education spend, and more.Installation$pipinstalllongevity_factors_by_countryPurpose:The purpose of this package is understand macro trends that can impact life expectancy at a national level over the span of several years. I've included data about health spend as a percentage of GDP, education spend as a percentage of GDP, happiness levels, inequality presented with the Gini coefficient.I chose the data project option for my project.InstallationHere is the package:https://pypi.org/project/longevity_factors_by_country/Install the package:
pip install longevity_factors_by_countryInstall testspip install -ihttps://test.pypi.org/simple/longevity_factors_by_countryImportant InformationData for ProjectData is uploaded in the "DataForPackage" Folder
I used Amazon RDS to store my data using postgresql. You can access the database by the following credentials:
Login:
qmssanj - username
qmssproject2023 - passwordCommand to access the database:
psql --host=database-qmss-anj.c8fpusvnobjg.us-east-2.rds.amazonaws.com--port=5432 --username=qmssanj password --dbname=postgres`CodeIn the DataDisplay.ipynb in the Final Project folder, I display the data that I've collected, cleaned, and aggregated. I also display two functions that I made to show highest and lowest values.
clean_data.py has most of the substance of my project, that's where I do all of the data wrangling.
Usage
longevity_factors_by_country.py contains all methods that are meant to be used publiclygetLongevityDataForYearis the primary method for data display, start here when you import the package.
This method takes a year in string format and returns all countries and their relevant columns for that year.Once you have a data frame from this function, you can use other methods.getCountriesWithTopLifeSpantakes the data frame and an integer, n, it then returns the n countries with the longest life spans for the data framegetCountriesWithLowestLifeSpantakes the data frame and an integer, n, it then returns the n countries with the lowest life spans for the data frameContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licenselongevity_factors_by_countrywas created by Anjana Rao. It is licensed under the terms of the MIT license.Creditslongevity_factors_by_countrywas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: longfor-test001
A sample Python projectA sample project that exists as an aid to thePython Packaging User
Guide'sTutorial on Packaging and Distributing
Projects.This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written usingreStructuredTextormarkdownwith the appropriatekey set. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.
Package: longhorn
longhornPhoto by Miguel from Pexelslonghorn is meant for hosting a single blog associated with a specific ActivityPub actor. Example:My blog is available athttps://blog.mymath.rocks/If you follow me, i.e.@helge@mymath.rocks. My blog posts will be delivered to your ActivityPub Inbox as a create article.Public replies to that Article are displayed on the blog.This is realized by longhorn being abovinebased ActivityPub Client.Installationlonghorn can be installed by runningpipinstalllonghorn
python-mlonghorn.setupThere you will be prompted forThe host your blog will run on, e.g.blog.mymath.rocksThe title of your blog, e.g.Helge's blogThe host of your ActivityPub server, e.g.mymath.rocksAnd be provided a did-key to add to your ActivityPub Actor following theBIN-2.The blog can then be run, by runninghypercornlonghorn:appUsagePosts are written as markdown then uploaded usingpython-mlonghorn.postfilename.mdTodosStopping the server is awkward due to the Event Source loop not stopping properly. Investigate how to fix this.Alternative to last todo: Separate Event Source into own process.Alternative: Use webhooksSolution: Move tomechanical bullProvide an RSS feedEnable a publish / preview endpointExplain how to customize templating without hacking the packageSupport tags and other metadata
Package: longitudinal-tomography
Copyright 2020 CERN. This software is distributed under the terms of the
GNU General Public Licence version 3 (GPL Version 3), copied verbatim in
the file LICENCE.txt. In applying this licence, CERN does not waive the
privileges and immunities granted to it by virtue of its status as an
Intergovernmental Organization or submit itself to any jurisdiction.INSTALLATIONThe computationally intensive or time-critical parts of the library is
written in C++ and python bindings are provided usingpybind11.
The installation and usage of the library is the same for all operating systems, but
different dependencies are needed for different operating systems.PrerequisitesLinuxYou need a C++ compiler likeg++installed. This is not required if installing a prebuilt package from acc-py or pypi.WindowsOn Windows computersMSVC >= 14.0with the Windows 10 SDK is required.In MinGW and WSL environments the standardg++compiler works out of the box.MacOSNo offical tests have been done on MacOS, but presumablyg++,clang/llvmshould work.InstallThe Longitudinal Tomography package is available in prebuilt wheels for Python 3.6-3.9
on CERN Acc-Py and pypy.org aslongitudinal-tomography. The package can thus easily be installed on
a Linux machine usingpip install longitudinal-tomographyThe package can be installed on a MacOS or Windows machine in the same manner, but the
C++ extension will be built on install.Other ways to installClone the repository and runpip install .The C++ extension will be built on install.For development environments where it’s preferable to compile the C++ extension inplace, it’s possible to run the commandpip install -e .which will compile the C++ extension using the available compiler (decided by setuptools).DocumentationThis development is based on the well tested and widely used FORTRAN95 code, documented and available here:http://tomograp.web.cern.ch/tomograp/Details on the algorithms in both codes, and the differences between them, can be found here:https://cdsweb.cern.ch/record/2750116?ln=kaParallelization using OpenMPThe C++ extension is accelerated by OpenMP parallel for loops. It is possible to limit the number of launched threads
by setting it in the extension, byfrom longitudinal_tomography.cpp_routines import libtomo
libtomo.set_num_threads([num_threads])which will set the maximum number of used threads to[num_threads].
Package: longleding-account-service-sdk
Longleding Account Settings Service SDKSupported Python VersionsPython >= 3.6Installationlongleding-account-service-sdk is available for Linux, macOS, and Windows.$pipinstalllongleding-account-service-sdkBasic Usage# -*- coding: utf-8 -*-fromsdkimportaccount_serviceaccount_service_endpoint="localhost:80"source_name="demo"account_service.init_service(endpoint=account_service_endpoint,src=source_name)if__name__=='__main__':account_service.get_user_list([1,3,5])account_service.get_user_page_list(1,10)TroubleshootIf you encounter error messages similar to the following:...
TypeError:Couldn'tbuildprotofileintodescriptorpool!
Invalidprotodescriptorforfile"common.proto":common.proto:Afilewiththisnameisalreadyinthepool.Setting an environment variable the following before running:exportPROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION='python'See also[Python] A file with this name is already in the pool.Python Generated Code
Package: longleding-mrc-engine-sdk
Longleding Operation MRC Engine SDKSupported Python VersionsPython >= 3.6Installationlongleding-mrc-engine-sdk is available for Linux, macOS, and Windows.$pipinstalllongleding-mrc-engine-sdkBasic Usage# -*- coding: utf-8 -*-importosos.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION']='python'importocr_engineasoeimportmrc_engineasmeoe.init_service('10.3.1.167:10027','demo')me.init_service('10.3.1.167:10028','demo')ocr_res:strwithopen('./f2.jpg','rb')asf:ocr_res=oe.ocr_with_image(image=f.read())hospital,doc_type,sub_doc_type=me.ocr_result_classify(ocr_res,"")print(hospital,doc_type,sub_doc_type)res=me.ocr_result_matching(ocr_res,hospital,doc_type,sub_doc_type,['单核细胞计数'])print(res)
Package: longleding-ocr-engine-sdk
Longleding Operation OCR Engine SDKSupported Python VersionsPython >= 3.6Installationlongleding-ocr-engine-sdk is available for Linux, macOS, and Windows.$pipinstalllongleding-ocr-engine-sdkBasic Usage# -*- coding: utf-8 -*-importocr_engineocr_engine_endpoint="localhost:80"ocr_engine_src="demo"ocr_engine.init_service(endpoint=ocr_engine_endpoint,src=ocr_engine_src)if__name__=='__main__':print(ocr_engine.ocr_with_image_oss_path('upload/some_image.jpg'))print(ocr_engine.ocr_with_image_url('https://some.domain.com/some_image.jpg'))withopen('some_image.jpg','rb')asf:img=f.read()print(ocr_engine.ocr_with_image(img))
Package: longleding-operation-log-service-sdk
Longleding Operation Log Service SDKSupported Python VersionsPython >= 3.6Installationlongleding-operation-log-service-sdk is available for Linux, macOS, and Windows.$pipinstalllongleding-operation-log-service-sdkBasic Usage# -*- coding: utf-8 -*-fromdatetimeimportdatetimeimportoperation_log_servicelog_service_endpoint="localhost:80"source_name="demo"operation_log_service.init_service(endpoint=log_service_endpoint,src=source_name)defput_log():log={"time":datetime.now(),"topic":"tpc","tags":{"tg1":"v1","tg2":"v2"},"content":"say something."}operation_log_service.log(**log)defget_logs():end_time=datetime.now()start_time=datetime.strptime(("%d-%02d-%02d00:00:00"%(end_time.year,end_time.month,end_time.day)),"%Y-%m-%d%H:%M:%S")request={"start_time":start_time,"end_time":end_time,"offset":0,"limit":0,"reverse":False,"topic_in":["tpc","other"],"source_in":["demo","other"],"tag_contains":{"tg1":["v1","v8"],"tg2":[],},}print("request: "+str(request))print("\n================================\n")resp=operation_log_service.get_operation_logs(**request)print(resp.total)forvinresp.logs:print(v)if__name__=='__main__':put_log()get_logs()
Package: longleding-push-service-sdk
Longleding Push Service SDKSupported Python VersionsPython >= 3.6Installationlongleding-push-service-sdk is available for Linux, macOS, and Windows.$pipinstalllongleding-push-service-sdkBasic Usage# -*- coding: utf-8 -*-fromsdkimportpush_servicepush_service_endpoint="localhost:80"source_name="demo"push_service.init_service(endpoint=push_service_endpoint,source=source_name)defsend_sms_register_code():push_service.send_sms_register_code("xxxxxxxxxxx","xxxxxx")defsend_sms_login_code():push_service.send_sms_login_code("xxxxxxxxxxx","xxxxxx")defsend_sms_change_password_code():push_service.send_sms_change_password_code("xxxxxxxxxxx","xxxxxx")defsend_sms_follow_up_login_code():push_service.send_sms_follow_up_login_code("xxxxxxxxxxx","xxxxxx")defsend_sms_follow_up_login_notification():push_service.send_sms_follow_up_login_notification("xxxxxxxxxxx","xxx","xxx","xxxxxxx")defsend_sms_follow_up_login_notification_wechat():push_service.send_sms_follow_up_login_notification_wechat("xxxxxxxxxxx","xxx","xxx","xxxxxxx","xxxxxxx")defsend_sms_general_verification_code():push_service.send_sms_general_verification_code("xxxxxxxxxxx","xxxxxx")defsend_email_register_code():push_service.send_email_register_code("xxxxxxxxxxx","xxxxxx")defsend_email_login_code():push_service.send_email_login_code("xxxxxxxxxxx","xxxxxx")defsend_email_change_password_code():push_service.send_email_change_password_code("xxxxxxxxxxx","xxxxxx")defsend_email_general_verification_code():push_service.send_email_general_verification_code("xxxxxxxxxxx","xxxxxx")if__name__=='__main__':send_sms_register_code()TroubleshootIf you encounter error messages similar to the following:...
TypeError:Couldn'tbuildprotofileintodescriptorpool!
Invalidprotodescriptorforfile"common.proto":common.proto:Afilewiththisnameisalreadyinthepool.Setting an environment variable the following before running:exportPROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION='python'See also[Python] A file with this name is already in the pool.Python Generated Code