Saravanan666/pypi-org huggingface dataset:
Package: bashup
A (toy) language that compiles to bash.
You can think of bashup as just a little syntactic sugar sprinkled on top of bash;
any valid bash script is also a valid bashup script.Just a spoonful of sugar makes the bashisms go down…#!/bin/bash@fnhigreeting='Hello',target{echo"${greeting},${target}!"}hi--target='World'Installation:$pipinstallbashupCompile and run the above example:$bashup-iabove_example.bashup-oabove_example.sh$bashabove_example.shHello,World!Or just run it directly:$bashup-rabove_example.bashupHello,World!Compiled code (above_example.sh):#!/bin/bash#
# usage: hi [--greeting=<GREETING>] --target=<TARGET> [ARGS]
#hi(){localgreeting='Hello'localtargetlocaltarget__set=0localargs=()while(($#));doif[["${1}"==--greeting=*]];thengreeting=${1#--greeting=}elif[["${1}"==--target=*]];thentarget=${1#--target=}target__set=1elseargs+=("${1}")fishiftdoneif!((target__set));thenecho"[ERROR] The --target parameter must be given."return1fi__hi"${greeting}""${target}""${args[@]}"}__hi(){localgreeting=${1}localtarget=${2}shift2echo"${greeting},${target}!"}hi--target='World'Supported Bash VersionsThe generated bash code works with bash 3.1 and above (tested against 3.1 to 4.3).Nifty FeaturesBashup tries its best to match the indentation of its compiled code against your hand-written bash.
For example:@fnhigreeting='Hello',target{echo"${greeting},${target}!"}…compiles to:#
# usage: hi [--greeting=<GREETING>] --target=<TARGET> [ARGS]
#hi(){localgreeting='Hello'localtargetlocaltarget__set=0localargs=()while(($#));doif[["${1}"==--greeting=*];thengreeting=${1#--greeting=}...Planned ImprovementsSeethis document for planned features.Changelog2.0.2Fixed PyPI release.2.0.1Fixed -Issue #9: “Misc updates”2.0.0Fixed -Issue #7: “Named arguments in functions should use –arg=value instead of –arg value”1.1.2Badges now use shields.io.Fixed -Issue #5: “Make compatible with latest “themattrix/tox” Docker baseimage.”1.1.1Tweaked the README.1.1.0Fixed -Issue #2: “Run generated bash code against multiple versions of bash.”Feature -Issue #3: “Allow running of bashup scripts directly.”Fixed -Issue #4: “Last positional parameter to @fn may not be passed to generated function.”1.0.0Initial release, supports@fnsyntax.
Package: bash-workbench
BASH WorkbenchA dataset manager for bioinformaticiansThe world is awash in data, but research communities tend to organize their data in different ways.
The BASH Workbench is a dataset manager for people who tend to organize their data as collections of files.
The goal of this utility is to make it easier to keep track of where your datasets are, remember how they were made, and quickly create new ones based on easily-sharable BASH templates.Visit the BASH Workbench Wiki
Package: basic-algo
BasicAlgo1. ObjectiveThe objective of this project is to be familiar with python language and data structures and algorithms.2. ScopeThe scope of this project is basic data structures and algorithms used in day-to-day life.3. Introduction to libraryThis library is intended to the users who want to use basic algorithms in python. The basic algorithms includes:Kadane's AlgorithmNext permutationLongest consecutive sequenceFractional knapsackN-QueensSudoku solvingM colouring problemPrint all permutations of a stringWord breakPalindrome partitioningSubset sumKth permutation sequenceCheck for balanced parenthesesNext greater elementLargest rectangle in histogramReverse words in stringLongest Common prefixRabin KarpPrefix function / Z-functionKMP AlgorithmBinary tree, traversals and viewsHeight of binary treeLCA in binary treeMaximum sum pathBinary tree from inorder and preorderBinary tree from inorder and postorderMST using Prim's AlgorithmMST using Kruskal's AlgorithmMax product subarrayLongest increasing subsequenceLongest common subsequence0/1 Knapsack ProblemCoin ChangeSubset sumEgg droppingPalindrome partitioning2. Usage of libraryimport Stack
from Stack import CheckForBalancedParentheses as cfbp


obj = cfbp.CheckForBalancedParentheses()
if obj.CheckForBalancedParentheses("((()))"):
    print("Yes")
else:
    print("No")3. Contact for updatesHarsh Chaplot: 17bit026@nirmauni.ac.in
Kandarp Kakkad: 17bit034@nirmauni.ac.in
Package: basicallybars
basicallybars: a beginner's attempt at a python libraryThis is a small python library.
Its goal is to make algorithms easier to use, by
displaying visual feedback on the progress of the
algorithm! It's also quite customisable.
Yup, that's literally it. WIP; feel free
to improve my terrible code.UseImport :)import basicallybarsCreate a new loading bar:bar = basicallybars.progressbar()Update & set values of that bar:bar.display(x, y) # Note: "x" is the amount done in this is example while "y" is the full amount of things that have to be doneDifferent loading indicatorsdefault_bar = basicallybars.progressbar(quantityDisplay="Amount") # Default loading display, shows as "(6/10)"
percent_bar = basicallybars.progressbar(quantityDisplay="Percent") # Creates a bar with a loading display as a percentage like "60%"
remaining_bar = basicallybars.progressbar(quantityDisplay="Remaining") # Creates a bar with a loading display like "4 remaining..."Set the quantity_display paramater to anything else and it won't display; only the loading bar (Not really recommended)basicallybars in action:from time import sleep

bar = basicallybars.progressbar()
for x in range(0, 4):
    bar.display(x, 4) # Display a bar that parses through imaginary data, with x being the amount of data finished and y being the total amount (4)
    sleep(1)
    basicallybars.clearTerminal() # Reset the terminal's output to reprint the barNote: More features and examples coming soon.
Package: basically-ti-basic
Basically, TI-BasicSoftware to make working with TI-Basic files much easier on the PC by decompiling
and recompiling the .8Xp files from the TI-83/TI-84 calculators. For more
information about the 8Xp file format, see the site listed in the credits and
the 8XP_Format.md file, which contains additional reverse-engineered
information.If you're looking for files to compile/decompile, you can find a number of
TI programs athttps://github.com/thenaterhood/ti-programs.Installationbasically_ti_basic can be installed via pip withpip3 install basically-ti-basic, or it can be built.
Once Python (3+) is installed on the target system, simply clone the repository
and navigate to the cloned repository in the command line. Once there, runpython setup.py install. You should be good to go.Usagebasically_ti_basic provides a command line utility and a few libraries.The command line utility should be available in your shell as the commandbasically-ti-basic. The utility allows for compilation and decompilation of
TI-83+ .8Xp files. It provides the option to write the result to a file or
print it to the console. Some usage examples:Open the file FIBO.8Xp, decompile it, and save the result to FIBO.txt$ basically-ti-basic -d -i FIBO.8Xp -o FIBO.txtOpen the file FIBO.txt, compile it, and save the result to FIBO.8Xp$ basically-ti-basic -c -i FIBO.txt -o FIBO.8XpOpen the file FIBO.8Xp, decompile it, and print the result to the console$ basically-ti-basic -d -i FIBO.8Xpbasically_ti_basic can be used in a program as well.importbasically_ti_basicasbtb# Decompile 8Xp filebtb.decompile_file("input.8Xp","tibasic.txt")# Compile 8Xp file from TI-BASIC codebtb.compile_file("tibasic.txt","output.8Xp")Heads Up! The TI file creation (compilation) functionality is incomplete and
may produce malformed files. Use it with caution and make sure to back up your
calculator before loading any compiled files onto it.LICENSEbasically_ti_basic is licensed under the MIT license. The full license text
can be found in the LICENSE file.If you find basically_ti_basic useful, use it regularly, or build something cool
around it, please consider contributing, providing feedback or simply dropping a
line to say that basically_ti_basic is useful to you. Feedback from users is
what keeps open source projects strong.CreditsSpecial thanks tohttp://merthsoft.com/for theirTI-83+/TI-84+ Link Protocol Guide, which was a big help in writing sections of this software, andthenaterhoodfor originally writing it.
Package: basicanalysis
Performance Overview of Supervised Learning methodsDo not know which supervised learning method is good for your dataset?
Would you like to know it in just few seconds?Congratulations:You are about to learn about a package which gives you the solution to all above problems!This small package of merely few bytes and code written in less than 100 lines, provide you the overview of all fundamental metrics measured for almost all supervised learning method.Models evaluated:Metrics considered:Decision TreesLogistic RegressionAccuracyPrecisionNaive BayesSVMJaccard ScoreF1_ScoreNeural NetworksK-NNR (Corr. Coeff.)ROC AUCRandom ForestAdaboostMSELog LossMandatory inputs required:A Pandas DataFrameOptional inputs in the given order:Column numbers for the predictors in the form of a LISTDefault: It will take all columns except the last one.Column number for the response in the form of a LISTDefault: It will take the last column.Test size in Float Ex. 0.3 for 30% Test Size.Default: 0.25 (25% Test size) will be assumed.How to install:Typepip install basicanalysisin command line to install the packageTo call the module from this package, typefrom basicanalysis.basicanalysis import basicanalysisNote : To import other modules, use the following command.from basicanalysis.basicanalysis import knnfrom basicanalysis.basicanalysis import knn_10foldfrom basicanalysis.basicanalysis import *Neat! Isn’t it?MAJOR UPDATE: 0.0.3 -> 0.1.0, BasicAnalysis -> basicanalysisAdded class knn to run K-NN method to compare with multiple inputsAdded class knn_10fold to run K-nn method on training data with 10-fold cross validation, comparing multiple inputs.README file for the taskWritten in reStructuredText or .rst file, and used to generate the project page on PyPI. Images coming soon…
Package: basic_argparse
﻿Provides some common setup actions for argparse. Import and be happy.Specifically: init_parser() sets up help, version, and docstring options for
a program. Help and version are easy to get with argparse normally; printing
your docstring is the interesting part. It returns a parser with these basic
options configured. After that, you’ll want to your application-specific
customizations.print_and_exit() is an argparse action for printing an arbitrary string -
specifically, in this case, a program’s docstring.Usage>>> __version__ = "1.0"
>>> __date__ = "Date of this version's release"
>>> #__doc__ is your docstring, which almost every module should have
>>> import basic_argparse
>>> parser = basic_argparse.init_parser("my awesome program", __version__,
>>>                                     __date__, __doc__)﻿========
Versions
========Version 1.1: Added sample usage to readmeVersion 1.0: Extracted from UNT_to_IPA.py
Package: basicauth
python-basicauthA dead simple HTTP basic auth encoder and decoder. Why? Because HTTP should be
drop dead easy... That's why.InstallTo installpython-basicauth, simply runpip install basicauthand
you'll get the latest version installed automatically.UsageTo generate an encoded basic auth string:>>>frombasicauthimportencode>>>username,password='rdegges','omghax!!!'>>>encoded_str=encode(username,password)>>>printencoded_str'Basic cmRlZ2dlczpvbWdoYXglMjElMjElMjE='To decode an encoded basic auth string:>>>frombasicauthimportdecode>>>encoded_str='Basic cmRlZ2dlczpvbWdoYXglMjElMjElMjE='# From the example above.>>>username,password=decode(encoded_str)>>>print(username,password)('rdegges','omghax!!!')We can also decode the encoded string directly:>>>frombasicauthimportdecode>>>encoded_str='cmRlZ2dlczpvbWdoYXglMjElMjElMjE='# From the example above.>>>username,password=decode(encoded_str)>>>print(username,password)('rdegges','omghax!!!')And if there are errors:>>>frombasicauthimportdecode,DecodeError>>>encoded_str='lol omg cmRlZ2dlczpvbWdoYXglMjElMjElMjE='# Invalid encoded string.>>>username,password=decode(encoded_str)Traceback(mostrecentcalllast):File"<stdin>",line1,in<module>File"basicauth/__init__.py",line49,indecoderaiseDecodeErrorbasicauth.DecodeErrorNOTE: TheHTTP Basic Authentication specdoesNOTallow you to include any colon characters (:) in the username
field. Colons are allowed in the password field -- but that's it.TestsWant to run the tests? No problem:$gitclonehttps://github.com/rdegges/python-basicauth.git
$cdpython-basicauth
$pipinstall-e.
...
$python-munittest
..............
----------------------------------------------------------------------
Ran14testsin0.103s

OK
Package: basic-auth
BasicA package for creating and reading config files for basic authentication.PurposeA lot of APIs use basic authentication, this is where you concatenateusernameandpasswordseparated by a:and encode them with base64 then prefix withBasic. Sousername:passwordencoded with base64 becomesBasic dXNlcm5hbWU6cGFzc3dvcmQ=. This package manages the encoding and storing of this configuration so it can be easily retrieve and used.UsageGetting started is easy, first install the package usingpip install basicNext you can create your auth dictformbasic_authimportAuthCONFIG=Auth().basic_config("url",Auth().encode("username","password"))Write it to fileAuth().create_config("basic_config.json",CONFIG)To read it in your own scriptsCONFIG = Auth().read_config("basic_config.json")Have a read ofsimple.pyThere's some examples in the Examples directorygeneral.pysupports both interactive input and arguments.python3Examples/general.py-urlexample.com-usernameuser1-passwordhunter2andpython3Examples/general.pyWSO.py shows how to use it and insert your own custom fields too.DetailsThis will create a folder called config and store the config in a json file with the following structure{"url":"url","authorization":"Basic dXNlcm5hbWU6cGFzc3dvcmQ="}
Package: basicCalc752
this Is Just A Simple Calculator to do stupid stuff withCHANGE LOGRELEASE 10.0.0.1  (7/27/2021)First Release\RELEASE 20.0.0.2 –> 7/27/2021Just wanted to test some things outreally didn’t don anything\-RELEASE 3
-0.0.0.3–> 7/27/2021
-Just wanted to test some things out
-really didn’t don anything
Package: basic-calculator-101
Basic CalculatorInstallationto use the package in your notebook:!pip installbasic-calculator-101==1.3from calculator.calculator import CalculatorUsagecalculator = Calculator()Addition: calculator.add(6)Subtraction: calculator.subtract(3)Multiplication: calculator.multiply(2)Division: calculator.divide(5)Take (n) root of number: calculator.nth_root(16)Memory of last result: calculator.reset_memory()
Package: basiccalculator-ByteVolx
About basiccalculatorA basic calculator that can add, subtract, divide, and multiply numbers.
To use basiccalculator you can choose between these 4 functions.If you used from...If you used from to import this package, you can just type in:
divide(number1, number2), multiply(number1, number), subtract(number1, number2), or add(number1, number2)If you used import...If you used import to import this package, you can just type in:
basiccalculator.divide(number1, number2), basiccalculator, multiply(number1, number), basiccalculator.subtract(number1, number2), or basiccalculator.add(number1, number2)
Package: basicCals
This is a simple module for mathematics which takes 2 numbers or 2 integer variables and it can add, subtract, multiply, divide, find power of two 2 numbers. It can also do more stuff.Also this module already detects decimal and integer values. So if you are making a calculator type of app it will detect if the number is decimal or integer and it will do it's job.To install our module:pip install basicCalsTo upgrade our module:pip install --upgrade basicCalsAlso it will detect if variable or the input is a string and it will print out an error.
Package: basic-card-hannu-hell
BASIC_CARDThis module is for anyone who is interested in creating their own card game. The functions included are self explanatory and allow to perform basic fucntions on an indidual card, deck of cards or individual hands. It uses the external pygame module to display the cards visually hence this can be used along with pygame module. It also uses the python in-built random module.METHODS INCLUDEDcompare_cards(c1, c2) : Takes two arguments of which both are instances of the Card object. Returns the highest value of the card. 'A', 'K', 'Q' and so on are deemed highest in that order. Feel free to modify according to your needs.match_card(i, x, y): Takes three arguments. 'i' refers to the instance of the Card object. 'x' refers to the x coordinate and 'y' refers to the y coordinate the card should be blitted on the screen. x and y starts from the top left corner of the screen.have_suits(hand, s): Takes two arguments where 'hand' refers to a hand which is a list object with instances of the Card object. 's' refers to the suit which is a string ('hearts', 'clubs', 'spades', 'diamonds'). Returns a boolean of either True if have and False if not.least_high_card(c, hand): Takes two argumensts where 'c' refers to an instance of Card object. 'hand' refers to a list object containing instances of the Card object. Returns the highest card in the hand but lower than 'c'lowest_valuCard_of_suit(hand, s): Takes two arguements where 'hand' refers to a list object containing instances of the Card object. 's' refers to the suit which is a string ('hearts', 'clubs', 'spades', 'diamonds'). Returns the lowest value of the card from the suit 's'.lowest_valueCard(hand): Takes one argument where 'hand' refers to a list object with instances of the Card object. Returns the lowest value of a card in the 'hand'.highest_valueCard_of_suit(hand, s): Takes two arguements where 'hand' refers to a list object containing instances of the Card object. 's' refers to the suit which is a string ('hearts', 'clubs', 'spades', 'diamonds'). Returns the highest value of the card from the suit 's'.highest_valueCard(hand): Takes one argument where 'hand' refers to a list object with instances of the Card object. Returns the highest value of a card in the 'hand'.Credit for the png images of the card pack goes to: Andrew Tideyhttp://creativecommons.org/publicdomain/zero/1.0/Licensed under MIT License ThanksChange Log0.0.1 (26/07/2020)First Release
Package: basiccodeally
Host common artifacts for various projects I am developing.  This is package does not include any wxPython dependencyWritten byHumberto A. Sanchez II(C) 2023NoteFor all kind of problems, requests, enhancements, bug reports, etc.,
please drop me an e-mail.Developer NotesThis project usesbuildlackeyfor day to day development buildsI am concerned about GitHub's Copilot projectI urge you to read about theGive up GitHubcampaign fromthe Software Freedom Conservancy.While I do not advocate for all the issues listed there I do not like that
a company like Microsoft may profit from open source projects.I continue to use GitHub because it offers the services I need for free.  But, I continue
to monitor their terms of service.Any use of this project's code by GitHub Copilot, past or present, is done
without my permission.  I do not consent to GitHub's use of this project's
code in Copilot.
Package: basic-config-loader
basic-config-loaderLoad a JSON configuration from a file, or from multiple folders on the filesystem.Getting StartedPrerequisitesThis project has no dependencies. Yay!Installingpip install basic-config-loaderVersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for detailsUsageimport configLoader as cl
...
CONFIG = cl.loadConfig(...)
...:param path: the path to look for the file. It is recommended to provide the result of os.path.join() rather than a manually typed path because a certain OS which must not be named has different path conventions than everyone else.:param default: the configuration to return if loading from the filesystem fails.:param fromHome: if True, look from the current user's home directory. If False, look from the root directory.:param topSearchPath: if None, only look in the specified path for the file. Otherwise, a path should be provided. 'HOME' can be filled in as a shortcut for os.environ['HOME']. The exact behavior depends on fullSearchAlways.:param fullSearchAlways: if False, and the directory specified in path is empty, move up one folder, up to topSearchPath, until a config file is found, and use the first file found. If no file is found, use the default config. If True, start with the default configuration and apply any changes from topSearchPath to path in order.:return: the configuration if loading was successful, or the default configuration if loading failed.
Package: basic-cowin-api
Basic Cowin APIPython API wrapper for CoWin API, for details visithttps://apisetu.gov.in/public/marketplace/api/cowin/cowin-public-v2Basic Example:fromcowin_apiimportCoWincw=CoWin()# Returns the details of statesresult=cw.get_state_list()print(result)# Returns the details of districts for a given state# in this case with state_id 2result=cw.get_districts_list(2)print(result)# Returns the details of districts for a given state with# open slots for age group 45 and free payment for vaccination.result=cw.check_by_district_id(district=651,age=45,payment="free")print(result)# Returns the details of slots available in area with# pincode 462003result=cw.check_by_pincode(462003)print(result)# Returns the details of slots available in area with# district id 650 -> obtained from `get_districts_list`result=cw.check_by_district_id(650)print(result)Installpip install basic_cowin_apiNotes:The API's of CoWin MAY NOT work from servers outside of India.Payment Options are:any,freeandpaid.Age Options are:18and45Roadmap:Add a filter to search by age group of 18-45 and 45+Add a filter for free and paid vaccineSearch for multiple pin codesSearch for multiple districtsAdd a filter based of vaccineImplement test casesLicense:GNU 3
Package: basic-fast-morse-translator
encodestring:str="Some text"importmorseTranslatorasmtmorse_string:str=mt.encode(string)print(morse_string)ouput... --- -- . / - . -..- -decodemorse_string:str="... --- -- . / - . -..- -"importmorseTranslatorasmtstring:str=mt.decode(morse_string)print(string)ouputsome text
Package: basic-find
Basic find program, cut-down version of unix ‘find’. Walks a file
hierarchy.[x] find . -name ‘*.txt’[x] find temp -type f[x] find . -type d[ ] find . -name ‘*.rb’ -exec rm {} ;Run as follows:[x] python -m basic_find . -name ‘*.txt’[x] python -m basic_find temp -type f[x] python -m basic_find . -type dHistory0.0.1 (2019-03-23)First release on PyPI.0.0.2 (2019-03-23)Add __main__.py to enable package execution.0.0.3 (2019-03-23)Address PEP8 and pylint tasks.
Package: basic-flask
Basic FlaskThis packge will allow you to create a basic flask app with a singel commend line.
Simply pip install it and then you can type in the commend line: "create-flask" and
in the corrent directory a venv will be created with flask and python-dotenv
alredy installed.
On top of that a few files will be created, main.py .gitignore .env .flaskenv requirements.txt
with some data.
Now you can simply type "flask run" and the flask app will start!