Saravanan666/pypi-org huggingface dataset:
Package: shortpath83
simplifies Windows path handling, providing short path name conversion and string path manipulation.Tested against Windows 10 / Python 3.10 / Anacondapip install shortpath83AboutThe provided Python library is focused on working with file and directory paths on Windows systems.
It primarily offers two functions, get_short_path_name and convert_path_in_string,
which help manage and manipulate file paths.
While the library focuses on Windows path management, it also considers compatibility with non-Windows systems.
It doesn't modify paths on non-Windows platforms, making it versatile for cross-platform development.Here's a description of what the library is doing and the potential advantages it offers:get_short_path_name Function:Purpose: This function takes a long file or directory path as input and returns its short (8.3) path name on Windows systems.Advantages:Compatibility: It ensures compatibility with older Windows systems that use short path names for compatibility with legacy software.Uniformity: Provides a standardized way to obtain short path names, which can be useful when working with mixed path formats.Path Validation: The function checks if the input path is already in short format and only converts long paths if necessary.convert_path_in_string Function:Purpose: This function processes a string containing file and directory paths and replaces them with their short (8.3) path names on Windows systems.Advantages:String Manipulation: Allows you to efficiently manipulate strings containing paths by converting them to short names while preserving the original string's structure.Flexibility: You can specify whether to convert paths to absolute paths, providing flexibility in how paths are represented in the output.Automatic Path Detection: Automatically identifies valid paths within the input string, ensuring that only paths are converted.fromshortpath83importget_short_path_name,convert_path_in_stringprint(get_short_path_name(long_name=r"C:\Users\hansc\Downloads\RobloxPlayerLauncher (2).exe"))print(convert_path_in_string(r"C:\Users\hansc\Downloads\RobloxPlayerLauncher (2).exe --somearg --another arg --somefile C:\Users\hansc\Downloads\1633513733_526_Roblox-Royale-High-Halloween-이벤트에서-사탕을-얻는-방법 (4).jpg --some_not_existing_file=c:\idontexistsandwontbeconverted",minlen=None,convert_to_abs_path=True))C:\Users\hansc\DOWNLO~1\ROBLOX~3.EXEC:\Users\hansc\DOWNLO~1\ROBLOX~3.EXE--somearg--anotherarg--somefileC:\Users\hansc\DOWNLO~1\164186~1.JPG--some_not_existing_file=c:\idontexistsandwontbeconverted
Package: shortprint
ShortPrint, the module to help you understand your data in an instantHow to use ShortprintFirst, you need to install our modulepip install shortprintThen, you simply need to do the following in your code:fromshortprintimportshortprintfromrequestsimportRequest()your_object=Request()# Print a preview of the result of you function# Without having hundred lines filled with textshortprint(your_object)And the result could be the following:List[]
  headers: Dict[]
  hooks: Dict[
    (1) str: List[]
  ]
  json: None
  method: None
  params: Dict[]
  url: None
)How to contributeClone the repositoryRun themake install-devcommand to install the development dependenciesEnjoy !
Package: shortquery
# ShortQuery By RushanShortQuery is an amazing library from web work.
Developed with Pride by Rushan (https://github.com/rushan7750/).Package Contents:Function: shorten.
Input: URL(str).
Use: A URL Shortener.
Returns: Returns the shortened form of the input URL.Function: responsecode.
Input: URL(str).
Use: Returns the URL’s Response code.
Returns: Status Code (str).Function: webopen.
Input: URL(str).
Use: Opens a new tab with the given URL in the default browser.
Returns: Nothing.Function: decodejson.
Input: JSON String.
Use: Decode JSON format.
Returns: Dict.Function: encodejson.
Input: Dict.
Use: Encode data into JSON format.
Returns: JSON String.
Package: shortrate
Python libraryshortrateRisk factor model library python style.Example UsagefrombusinessdateimportBusinessDate,BusinessRangefromdcfimportZeroRateCurve,FxCurvefromtimewaveimportConsumer,EnginefromshortrateimportRiskFactorProducer,GBMFxCurve,HullWhiteCurve,HullWhiteFxCurve,HullWhiteMultiCurrencyCurves=BusinessDate()t=s+'10y'g=BusinessRange(s,t,'6M')d=ZeroRateCurve([s],[0.05])f=ZeroRateCurve([s],[0.04])x=FxCurve([s],[.8],domestic_curve=d,foreign_curve=f)r=GBMFxCurve.build(x,volatility=0.2)printr.evolve(1.,s,s+'1y',0.01)printr.get_fx_rate(s+'3y'),r._factor_dateprintr.evolve(1.,s+'1y',s+'5y',0.1)printr.get_fx_rate(s+'7y'),r._factor_datehwd=HullWhiteCurve.build(d,mean_reversion=0.01,volatility=0.03,terminal_date=t)hwf=HullWhiteCurve.build(f,mean_reversion=0.01,volatility=0.03,terminal_date=t)hwx=HullWhiteFxCurve.build(r,hwd,hwf)hwxf=HullWhiteMultiCurrencyCurve.build(hwf,hwd,hwx)printhwd.evolve(1.,s,s+'1y',0.01)printhwf.evolve(1.,s,s+'1y',0.02)printhwx.evolve(1.,s,s+'1y',(0.01,0.02,0.01))printhwxf.evolve(1.,s,s+'1y',0.02)func=(lambdax:hwd.get_cash_rate(t-'1y'))c=Consumer(lambdax:func(x.date))res=Engine(RiskFactorProducer(hwd),c).run(g,100)printresInstallThe latest stable version can always be installed or updated via pip:$pipinstallshortrateIf the above fails, please try easy_install instead:$easy_installshortrateDevelopment VersionThe latest development version can be installed directly from GitHub:$pipinstall--upgradegit+https://github.com/pbrisk/shortrate.gitContributionsIssuesandPull Requestsare always welcome.LicenseCode and documentation are available according to the Apache Software License (seeLICENSE).
Package: shortscale
shortscalehttps://pypi.org/project/shortscale/Python module to convert integers into English words.This is the Python port of the shortscale function, originally written inJavaScriptandRust, documentedhere. There is a also aGoversion.Theshort scale, has different words for each power of 1000.This implementation expresses positive and negative numbers from zero to thousands, millions, billions, trillions, quadrillions etc, up to 10**33 - 1.Functiondefshortscale(num:int)->strExampleimportshortscale# ==> four hundred and twenty billion nine hundred and ninety nine thousand and fifteenprint(shortscale.shortscale(420_000_999_015))After installing this module, the function can also be called from the commnd line e.g.$shortscale420_000_999_015420,000,999,015=>fourhundredandtwentybillionninehundredandninetyninethousandandfifteen

$shortscale0xffffffff4,294,967,295=>fourbilliontwohundredandninetyfourmillionninehundredandsixtyseventhousandtwohundredandninetyfiveBenchmarks$pipinstall-e.

Pythonv3.11.2$pythontests/bench_shortscale.py50000calls,5000000bytes,1264ns/call100000calls,10000000bytes,1216ns/call200000calls,20000000bytes,1216ns/call

Pythonv3.10.9$pythontests/bench_shortscale.py50000calls,5000000bytes,1811ns/call100000calls,10000000bytes,1808ns/call200000calls,20000000bytes,1809ns/callTest$pipinstallpytest
$pipinstall-e.
$pytest=============================testsessionstarts==============================platformdarwin--Python3.10.9,pytest-7.2.1,pluggy-1.0.0
rootdir:/Users/jldec/pub/shortscale-py
collected1itemtests/test_shortscale.py.[100%]==============================1passedin0.00s===============================BuildThis assumes that access to pypi.org has been configuredpipinstallbuildtwine
python-mbuild
python-mtwineuploaddist/*
Package: shorttextanalyzer
Short-text-analyzerThis ShortTextAnalyzer was created to help analyze the open-ended survey response which usually has less than three sentences. The analysis includes topic modeling, sentiment analysis, and visualization. This topic modeling was done using pre-trained representations of language, namely BERT, combine with the clustering algorithm.Documentation Page:https://thisisphume.github.io/short-text-analyzer/Installpip install short-text-analyzerInstall all the required packages from the requirement.txt file.pip install -r requirements.txtfromshorttextanalyzer.coreimport*How to useanalyzer=shortTextAnalyzer(comments_series,4)output_result=analyzer.analyze_getResult()Embedding Method for Visualization is  2AE  with MSE of 0.6560611658549391
Embedding Method for Clustering is  2AE  with MSE of 0.4782262679093038
Number of clusters via HDBSCAN is:  5.0
Number of clusters via KMeans is:   4Here we specify that we want 4 clusters/topic from this data.Output: resultsentimentScore: Polarity score ranges from [-1,1] where 1 means positive statement and -1 means a negative statement.Subjective: score ranges from [0,1] where 1 refer to personal opinion, emotion or judgment and 0 means it is factual information.clusterByKMeans: assigned cluster number for each comments using KMeansclusterByHDBSCAN: assigned cluster number for each comments using HDBSCANoutput_result.sample(2)commentscomment_langcomments_cleansentimentScoresubjectiveScoreclusterByKMeansclusterByHDBSCAN50sondage parfaitfrperfect poll1.001.00000021875it wasn't very clear what the purpose of the f...enit wasn't very clear what the purpose of the f...0.190.41583311Visualization: how good is our clusters? HDBSCAN and KMeansanalyzer.plot_output()ReferencetBERT: Topic Models and BERT Joining Forces for Semantic Similarity DetectionUsing UMAP for clustering:https://umap-learn.readthedocs.io/en/latest/clustering.html#traditional-clusteringhttps://github.com/dmmiller612/bert-extractive-summarizerhttps://github.com/MilaNLProc/contextualized-topic-modelshttps://github.com/MaartenGr/BERTopicNatural Language Processing for Beginners: Using TextBlob
Package: short-text-analyzer
Short-text-analyzerThis ShortTextAnalyzer was created to help analyze the open-ended survey response which usually has less than three sentences. The analysis includes topic modeling, sentiment analysis, and visualization. This topic modeling was done using pre-trained representations of language, namely BERT, combine with the clustering algorithm.Documentation Page:https://thisisphume.github.io/short-text-analyzer/Installpip install short-text-analyzerInstall all the required packages in requirement file.pip install -r requirements.txtHow to usefromshorttextanalyzer.coreimport*analyzer=shortTextAnalyzer(comments_series,4)output_result=analyzer.analyze_getResult()Here we specify that we want 4 clusters/topic from this data.Output: resultsentimentScore: Polarity score ranges from [-1,1] where 1 means positive statement and -1 means a negative statement.Subjective: score ranges from [0,1] where 1 refer to personal opinion, emotion or judgment and 0 means it is factual information.clusterByKMeans: assigned cluster number for each comments using KMeansclusterByHDBSCAN: assigned cluster number for each comments using HDBSCANoutput_result.sample(2)<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }.dataframe tbody tr th {
    vertical-align: top;
}

.dataframe thead th {
    text-align: right;
}</style>commentscomment_langcomments_cleansentimentScoresubjectiveScoreclusterByKMeansclusterByHDBSCAN50sondage parfaitfrperfect poll1.001.00000021875it wasn't very clear what the purpose of the f...enit wasn't very clear what the purpose of the f...0.190.41583311Visualization: how good is our clusters? HDBSCAN and KMeansanalyzer.plot_output()ReferencetBERT: Topic Models and BERT Joining Forces for Semantic Similarity Detection:https://www.aclweb.org/anthology/2020.acl-main.630.pdfhttps://github.com/dmmiller612/bert-extractive-summarizerhttps://github.com/MilaNLProc/contextualized-topic-modelshttps://github.com/MaartenGr/BERTopic
Package: short-text-tagger
short_text_taggershort_text_tagger generates topic distributions for all texts in a corpus.Free software: MIT licenseInstallationpip install short_text_taggerUsageIf you have graph-tool installed and want to use its community detection functionality to generate topics, then
importshort_text_tagger.generate_topic_distributions_from_corpusinto your project. This function
expects a pandas DataFrame with columnsidandtext.If you don’t have graph-tool installed or want to substitute other community detection algorithms, then
you have the option of importingcleaned_texts_df_from_datafromshort_text_taggerfor text preprocessing
and adding a requiredwordscolumn to the aforementioned DataFrame. After, you can importassign_text_probabilities,
which expects the input DataFrame with an addedwordscolumn and a list of dictionaries (word to topic mappings)
and returns the same DataFrame with appended topic probability columns. The hook is the creation of the list of word to
topic mappings. In this package, that functionality is provided byword_to_block_dict.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-10-09)First release on PyPI.
Package: short-unique-id
Python ShortId and SnowflakeIdshort_idis a Python 3 library that provides an easy way to generate a short unique id in an orderly way using the snowflake id generation methodshort id with ordered waysnowflake id as ordered unique numbershort id with more unique without ordershort_idhosted onPyPIand can be installed as such:pip install install ShortIdAlternatively, you can also get the latest source code fromGithuband install it manually.importshort_idunique_id:str=short_id.generate_short_id()snowflake_id:int=short_id.get_next_snowflake_id()# To increase id accuracy need to send a mult value the default value is 10000# and based on this mult value the id length and accuracy will changeunique_id:str=short_id.generate_short_id(1000000)snowflake_id:int=short_id.get_next_snowflake_id(1000000)Running Testspython -m unittest discoverChangelogVersion 0.1.2Initial release
Package: short_url
Python implementation for generating Tiny URL- and bit.ly-like URLs.A bit-shuffling approach is used to avoid generating consecutive, predictable
URLs.  However, the algorithm is deterministic and will guarantee that no
collisions will occur.The URL alphabet is fully customizable and may contain any number of
characters.  By default, digits and lower-case letters are used, with
some removed to avoid confusion between characters like o, O and 0.  The
default alphabet is shuffled and has a prime number of characters to further
improve the results of the algorithm.The block size specifies how many bits will be shuffled.  The lower BLOCK_SIZE
bits are reversed.  Any bits higher than BLOCK_SIZE will remain as is.
BLOCK_SIZE of 0 will leave all bits unaffected and the algorithm will simply
be converting your integer to a different base.The intended use is that incrementing, consecutive integers will be used as
keys to generate the short URLs.  For example, when creating a new URL, the
unique integer ID assigned by a database could be used to generate the URL
by using this module.  Or a simple counter may be used.  As long as the same
integer is not used twice, the same short URL will not be generated twice.The module supports both encoding and decoding of URLs. The min_length
parameter allows you to pad the URL if you want it to be a specific length.Sample Usage:>>> import short_url
>>> url = short_url.encode_url(12)
>>> print url
LhKA
>>> key = short_url.decode_url(url)
>>> print key
12Use the functions in the top-level of the module to use the default encoder.
Otherwise, you may create your own UrlEncoder object and use its encode_url
and decode_url methods.Installshort_urlis also available at pypi:http://pypi.python.org/pypi/short_urlGive a try to your finger:$ pip install short_urlAnd done ;)Testsshort_urlis tested on bothpython2andpython3, to run the tests:$ toxSourcehttps://github.com/Alir3z4/short_urlWebsitehttp://alir3z4.github.com/short_urlIssueshttps://github.com/Alir3z4/short_url/issuesPyPihttp://pypi.python.org/pypi/short_urlAuthorMichael FoglemanMaintainerAlireza SavandLicenseMITLinkhttp://code.activestate.com/recipes/576918/
Package: short-urls-client
# Short URLs Client
![CI](https://github.com/jamesridgway/short-urls-client/workflows/CI/badge.svg?branch=master)A python client for my [aws-lambda-short-url](https://github.com/jamesridgway/aws-lambda-short-url) project.## Installation
TODO## Usage### Setup credentialsshort-urls config mydoma.in MyApiKey-l3tm31n### List all URLsshort-urls list### Create a URLshort-urls createhttps://github.com/jamesridgway/short-urls-clientOr specify a custom token (e.g.python-client)short-urls createhttps://github.com/jamesridgway/short-urls-clientpython-client### Delete a URLshort-urls deletehttps://mydoma.in/T0k3N## Development
The following instructions will help you get started in developing changes for this project.### Python Environment
Run the following to setup a python virtual environment and install all dependencies:./setup.sh### Pylint
Pylint is used to check code quality and style, pylint can be run using:./run-pylint.sh### Tests
You can run the test as follows:./run-tests.shAn HTML code coverage report will be generated in thehtmlcovdirectory.
Package: shortzy
ShortzyA Unofficial Wrapper for Adlinkfly Site and Alternative Sites·Report Bug / Request Feature·Usage·ReferenceShortzyAn Unofficial Python version of Adlinkfly and Alternative Website API wrapper. Used to Short your long link and let you earn from it.InstallationInstall shortzy with pippipinstallshortzyTo Upgradepipinstall--upgradeshortzyUsagefromshortzyimportShortzyimportasyncioshortzy=Shortzy('<YOUR API KEY>')asyncdefmain():link=awaitshortzy.convert('https://example.com/')print(link)asyncio.run(main())Output:https://droplink.co/mVkraAvailable WebsitesAvailable list of Websitesdroplink.cogplinks.intnlink.inza.gldu-link.inviplink.inshorturllink.inshareus.inRequest For Your Website !FeaturesSingle URL ConvertBatch Convert from ListConvert from TextContributingContributions are always welcome!ReferenceInitfromshortzyimportShortzyimportasyncioshortzy=Shortzy(api_key="Your API Key",base_site="droplink.co")# Base site defaults to "droplink.co". You can add your own site here which is alternative to this default site# Please Refer https://github.com/kevinnadar22/shortzy#available-websites for more informationConvert a single URLconvert(link,alias,silently_fail,quick_link)->strParameterTypeDescriptionlinkstringRequired. Long URL LinkaliasstringCustom alias for the linksilently_failboolRaise an exception or not if error ocuursquick_linkboolReturns the quick linkExample:asyncdefmain():link=awaitshortzy.convert('https://www.youtube.com/watch?v=d8RLHL3Lizw')print(link)asyncio.run(main())## Output: https://droplink.co/Ly4fCxZ## Quick Link: https://droplink.co/st?api=<YOUR API KEY>&url=https://www.youtube.com/watch?v=d8RLHL3LizwBulk Convertbulk_convert(urls:list,silently_fail,quick_link:bool=False)->listParameterTypeDescriptionurlslistRequired. List of URLs to convertExample:asyncdefmain():links=['https://github.com/','https://twitter.com/','https://google.com/']link=awaitshortzy.bulk_convert(links)print(link)asyncio.run(main())## Output: ['https://droplink.co/ihu1e', 'https://droplink.co/AkY2Nt', 'https://droplink.co/mK1eVTV']Convert from Textconvert_from_text(text:str,silently_fail:bool=True,quick_link:bool=False)->strParameterTypeDescriptiontextstrRequired. Text containing Long URLS to shortExample:asyncdefmain():text="""Unstoppable:-https://www.youtube.com/watch?v=330xlOv8p9MNight Changes:-https://www.youtube.com/watch?v=syFZfO_wfMQ"""link=awaitshortzy.convert_from_text(text)print(link)asyncio.run(main())# Output:# "Unstoppable:-https://droplink.co/T6jbHlU# Night Changes:-https://droplink.co/ajIRE"Get quick linkget_quick_link(link:str)ParameterTypeDescriptionlinkstrRequired. Long LinkExample:asyncdefmain():link="https://www.youtube.com/watch?v=syFZfO_wfMQ"quick_link=awaitshortzy.get_quick_link(link)print(quick_link)asyncio.run(main())## Quick Link: https://droplink.co/st?api=<YOUR API KEY>&url=https://www.youtube.com/watch?v=syFZfO_wfMQSupportFor support, emailjesikamaraj@gmail.comor PMDevRoadmapAdd more integrationsDisclaimerLicensed underGNU AGPL v3.0.Selling The Codes To Other People For Money IsStrictly Prohibited.CreditsThanks To Me
Package: shosai
supporting tool, management stock type document(not flow type document).configplease, setup $HOME/.config/shosai/config.json, like below.{"docbase":{"teamname":"<team name>","token":"<token>","username":"<username>"},"hatena":{"blog_id":"<username>.hatenablog.com","client_id":"<client id>","client_secret":"<client secret>","consumer_key":"<consumer key>","consumer_secret":"<consumer secret>","hatena_id":"<hatena id>",}}push article$shosaidocbasepushdocs/xxx.mdupload (or update) article(the document has images![text](url), uploading ones as attachment files)pull article$shosaidocbasepulldocs/xxx.mdupdate local article (using this command, when managed article is already downloaded)clone article$shosaidocbaseclonehttps://<teamname>.docbase.io/posts/xxxxxx--namexxx.mddownload articlesearch article$shosaidocbasesearchgetting recently uploaded documents0.0.4–verboseoptionrfind, when finding mapping.json0.0.2fix bug for docbase, treating metadata (scope, groups, draft)0.0.1first release
Package: shot-chart
Shot ChartPython module to plot NBA shot chart data and distributions for players and teams and some utilities.This file will become your README and also the index of your documentation.Installpip install shot_chartHow to useWe first create a pandas dataframe from the source data.shots_2019 = make_df(untar_data(URLs.SHOTS_2019))Listing teams for the seasonlist_teams(shots_2019)0            Atlanta
1            Orlando
183       Sacramento
184             Utah
341         Oklahoma
343     Golden State
511           Denver
512      New Orleans
675        Milwaukee
1016        Portland
1224         Phoenix
1226        Brooklyn
1412     San Antonio
1413         Memphis
1934         Toronto
2119    Philadelphia
2296       Minnesota
2477       LA Lakers
2655         Houston
2656     LA Clippers
2843       Charlotte
3017          Boston
3018      Washington
3383         Detroit
3918           Miami
5020       Cleveland
5535         Indiana
6407        New York
6410         Chicago
8473          Dallas
Name: team, dtype: objectListing players who took at least 1 shot for a particular teamlist_team_players(shots_2019, 'Portland')<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }.dataframe tbody tr th {
    vertical-align: top;
}

.dataframe thead th {
    text-align: right;
}</style>shots_bycount2CJ McCollum12125Damian Lillard11584Carmelo Anthony6787Hassan Whiteside6760Anfernee Simons5226Gary Trent3499Kent Bazemore32210Mario Hezonja18813Rodney Hood17215Trevor Ariza15912Nassir Little15114Skal Labissière1471Anthony Tolliver1173Caleb Swanigan438Jaylen Hoard3216Wenyen Gabriel2917Zach Collins1911Moses Brown10Plotting team shot distributionhouston = TeamShots(shots_2019,"Houston")houston.plot_shots()houston.plot_shots(date_range=((2020,1,3), (2020,1,11)))Please check the extra options when using the plotting functionsportland_20191125 = TeamShots(shots_2019,"Portland")portland_20191125.list_game_ids(2019,11,25)<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }.dataframe tbody tr th {
    vertical-align: top;
}

.dataframe thead th {
    text-align: right;
}</style>game_idwinnerloser45560201911250CHIPortlandChicagoportland_20191125.plot_shots("201911250CHI")Plotting player shot distributionplayer_shots = PlayerShots(shots_2019,"Anthony Davis")player_shots.plot_shots()dlo = PlayerShots(shots_2019,"D'Angelo Russell")dlo.plot_shots()dlo.plot_shots(distance_limit=(16,26),attempt="2-pointer")dlo.plot_effective(most_or_least="most")dlo.plot_effective(most_or_least="most",exclude=["0ft"])dlo.plot_effective(most_or_least="most",min_shots="auto",exclude=['2ft'])dlo.plot_effective(most_or_least="least")dlo.plot_effective(most_or_least="least",min_shots="auto")