Saravanan666/pypi-org huggingface dataset:
Package: pyquilted
pyquiltedGenerate Quilted™ resumes from Yaml in python. Find out more aboutQuilted$ pip install pyquiltedRequirementsPyquilted usesWkhtmltopdfto convert html to pdf viapython-pdfkit.Install wkhtmltopdfDebian/Ubuntu$ sudo apt-get install wkhtmltopdfMacOs HomeBrew$ brew install caskroom/cask/wkhtmltopdfWindows and other platforms:link to wkhtmltopdf binariesSampleGenerate a sample yaml file so that you can use it as a template for your resume$ pyquilted --sample mysample.ymlPdfConvert your yaml file to a quilted resume pdf$ pyquilted --pdf mysample.yml myresume.pdfCustom Formattingsectionformatting:

--heading-compactuseacompactheadingformatdefaultstoauto
--heading-expandeduseanexpandedheadingformatdefaultstoauto
--skills-tableuseaskillstabletoshowmanyskills
--no-sortingdisableskillssorting
--no-groupingdisablegroupingofcompactsections


style:cssstylestoapplytoresumecontent

--color"color|#rgb"csscolorcodeforyourname
--font"font"cssfontforresumecontent
--font-other"font"cssfontoverrideforheading/contacts
--font-size"size"cssfontsizeforresumecontentHtmlIf you prefer to customize the html and then print using your browser$ pyquilted --html mysample.yml myresume.html
Package: pyquine
python3, more likecatWhen imported,pyquineprints the source of the main module.There's the standard:importquineButpyquinesupports any source file that manages to import it:#!/usr/bin/env python3"""This is my quine. It prints its own source."""importquineIt's cheating, but that's the point.
Because PyPI deserves a good quine variation of the "importX" meme.
Package: pyquirc
pyquircPython and C++ bindings for thequirclibrary, created usingpybind11.InstallationThe package is on pypi, just$ pip install pyquircThere is an older, no longer maintained packagequirc, not to be confused.Example# we read images using pillow, numpy arrays do also workfromPILimportImage,ImageOpsimportquircimg=Image.open("resources/helloworld.png")# we need to convert to 8-bit grayscale for quircimg=ImageOps.grayscale(img)# Images must either have `tobytes()`, `width` and `height` like PIL images# or support the 2d buffer protocal, both with data type uint8 (8-Bit Grayscale)decoded_codes=quirc.decode(img)print(f'Found{len(decoded_codes)}qr code(s) in the image')forcode,dataindecoded_codes:print(code)print(data)Output:Found 1 qr code(s) in the image
Code(size=21, corners=[Point(40, 40), Point(250, 40), Point(250, 250), Point(40, 250)])
Data(payload=b'Hello, World!', version=1, data_type=DataType.BYTE, eci=ECI.UNDEFINED, ecc_level=ECCLevel.M, mask=5)On the Command LineThis package also installs the toolpyquirc_decode, which will
usepillowas above and decode the QR code in the given image.The payloads of each decoded qr code will be printed to stdout, one per line:$ pyquirc_decode resources/helloworld.png -v
INFO Found 1 qr code in image
INFO --- Payload 1 ---
Hello, World!The log messages come on stderr, so piping the the output will only pipe
the payloads, not the log output.
Package: pyquire
Object Oriented API for QuireA set of resources (classes) for working withquireAPIAll API resources available inresources.Examples:frompyquire.resources.user_resourceimportUserResourceprint(UserResource().get_users())# [User(oid='...', name='...', iconColor='43', image='...', ... email='...', website='')]TODOCreate credentials classWhen code received - stop server and continue work flow.P.S.Implemented for their needs, but if there are problems, suggestions, etc. create issue in the repository.Changelogv1.0.4:Create facadeAdd functools.wraps() decorator for eachapidecoratorIntegrate withPyQuirev1.0.1:Fix requirementsv1.0.0:Just create
Package: pyquirrinds
LIBRERÍA DE LA CLASE DE LA CLASE DE DATA SCIENCE DE THE BRIDGE, GRUPO DE SEPTIEMBRE 2022 MODALIDAD FULL TIMEEsta librería incluye funciones de limpieza, visualización y machine learningLimpiezaread_it(url)
google_img(path_api, urls, directory_names, directory_path)
dif_encoder(x, y)
splityear(x)
simbolcleaner(x)
too_many_nans(df, threshold=0, clean=True)
num_processor(df, chars1=','', chars2='@'€%"$')
mueve_imagenes(carpeta_fuente, carpeta_train, carpeta_test, n_max=500, split=0.2)
read_data(path, im_size, class_names)
edad(df, columna)
igualar_strings(df, columna, string_deseado)
outliers(df, columna)
porcentaje(columna)
trimestre(df, string_columna)
deteccion_outliers(data, features)
lista_de_listas(lista)
ratio_nulos(data, features)Visualizaciónvisualize_data(x, y)
s_temporal(df, a, y)
comparacion_stemporal(train, test, prediction, lower_series, upper_series)
candle_plot(df)
grafica_creator(df)
grid_creator(data, x, y, hue)
Line_Line_bar_party(x, y, y1, label_x="x", label_y="y", label_y1="y1", plotsize=(20, 12), barcolor="grey", linecolor_y="green" linecolor_y1="b")
balanced_target(X_train, y_train)
feature_importances_visualization(best_estimator, X_train, plotsize=(20, 10))
matrices_comparadas(y, x_test_scaled, y_test, nombre_modelo, y_2, x_test_scaled_2, y_test_2, nombre_modelo_2, size)
plot_matriz_confusion(y, x_test_scaled, y_test, nombre_modelo, size)
piechart_etiquetado(data, size)
test_transformers(df, cols)
report_plot(tree_entrenado, X_test, y_test, columnas_X)
bar_plot(df, columna)
mapa_folium(df, geojson, key, coord, legend="Mapa")
vis_line(df, ejex, ejey, group="", type=0)
matrix_sca (df, dimensiones, agrupar, titulo="Scatter Matrix")
pca_visualization(df)Machine Learningmy_pca(n_components, df)
my_kmeans(n_clusters, df)
anomalias_var(feature)
FeatureImportance_rf(X, y, n)
FeatureSelection_var(X, min_var)
Impute_Tree_Regressor(df: pd.core.frame.DataFrame, n_max_depth: int, random_state: int)
Impute_Tree_classifier(df: pd.core.frame.DataFrame, categorical_variable: str, n_max_depth: int, random_state: int)
relative_absolute_error(y_train: pd.core.series.Series, y_test: pd.core.series.Series, y_predicted: pd.core.series.Series, type_metric='error')
specificity(y_true, y_pred)
classifier_cat(dataf)
cat_to_num(dataf)
ver_balance(target)
under(X, y)
over(X, y)
sampling(X, y)
gradBoosting(X_train, X_test, y_train, y_test)
cal_cols(df, column, n=0)
bi_ray(n, bi=[[1], [0]], num_loop=1)
frame_maker(df, columns, up_array, num_loops=0, num_col=0, dict_decod={}, full_frame=pd.DataFrame([]))
bi_hot_encoding(df, columns=None)
get_clusters(X_train, cluster_fd=KNeighborsClassifier(), cluster_mk=DBSCAN())
model_dic(df_model, n=0, dic={})
class cluster_ensemble
Dec_tree_clf(X, y)
LogisticReg(X, y)
RandomForest(X, y)
pickleizer(nombre, modelo=None)
DPRegressor(X: pd.DataFrame, y: pd.Series)
Package: py-quiz
PyQuiz
PyQuiz is an interactive quiz game built with Python. The aim was to create and application and learn the basics of python GUI programming with TKinter. As I explored Tkinter more, I thought of developing this simplest game.The PyQuiz opens up with multiple choice questions and increments your score with 5 as you answer correctly in the game and reduces 5 points for every incorrect answer. It also asks you for your confirmation while exiting the application.InstallationTo install PyQuiz! to your system,pip install py-quizTo run PyQuiz! just fire the commandpy-quizin your terminal.Things To-Do:
* ~~Create basic application~~
* ~~Add score counter~~
* ~~Add questions from JSON file.~~
* ~~Create apipinstaller package~~
* ~~Confirm quit option~~
* Resize Window as per question length. ( If somebody can help me with this, it’ll be great!)InfoPyQuiz is maintained athttps://github.com/abhijitnathwani/PyQuiz/Any questions/suggestions are welcome. Feel free to drop an email: abhijit[dot]nathwani[at]gmail[dot]com or raise and issue with the repo.
Package: pyquizAPI
pyquizAPIQuizAPI.io wrapper for Python 3.8+InstallationYou can install from the PyPI repository:Package on PyPIpipinstallpyquizAPIHow to UseTo get an API key go tohereand create an accountfrompyquizAPIimportQuizClient# creates client objectclient=QuizClient(api_key)# get questionsquestions=client.get_questions()# returns list of question objects# sample output{'id':197,'question':'What is the prefix of WordPress tables by default?','description':None,'answers':{'answer_a':'wp_ default','answer_b':'wp_','answer_c':'wp_ in','answer_d':'_wp_','answer_e':None,'answer_f':None},'multiple_correct_answers':'false','correct_answers':{'answer_a_correct':'false','answer_b_correct':'true','answer_c_correct':'false','answer_d_correct':'false','answer_e_correct':'false','answer_f_correct':'false'},'correct_answer':None,'explanation':None,'tip':None,'tags':[{'name':'WordPress'}],'category':'CMS','difficulty':'Easy'}ArgumentsArgumentTypeDescriptioncategorystringGet the questions for a specific category onlydifficultystringGet the questions for a specific difficulty onlytags[string]Specify a list of tags that you want the questions to belong tolimitintLimit the number of questions returnedParameter ReferenceCreating and using custom configurationclient=QuizClient(api_key)client.make_config(category='',difficulty='',tags=[''],limit='')questions=client.get_questions(use_config=True)
Package: pyquoridor
Quoridor logic in PythonInstallpip install pyquoridorUsagefrompyquoridor.boardimportBoardfrompyquoridor.utilsimportprint_boardboard=Board()# Place fencesboard.place_fence(row=0,col=0,orientation='h')board.place_fence(row=7,col=0,orientation='h')board.place_fence(row=3,col=2,orientation='v')board.place_fence(row=1,col=0,orientation='v')# Move pawnboard.move_pawn(player='white',target_row=1,target_col=4)# Show boardprint_board(board)"""··· ··· ··· ··· ··· ··· ··· ··· ···8 :   :   :   :   : b :   :   :   :   :---*--- ··· ··· ··· ··· ··· ··· ···7 :   :   :   :   :   :   :   :   :   :··· ··· ··· ··· ··· ··· ··· ··· ···6 :   :   :   :   :   :   :   :   :   :··· ··· ··· ··· ··· ··· ··· ··· ···5 :   :   :   :   :   :   :   :   :   :··· ··· ··· ··· ··· ··· ··· ··· ···4 :   :   :   |   :   :   :   :   :   :··· ··· ···*··· ··· ··· ··· ··· ···3 :   :   :   |   :   :   :   :   :   :··· ··· ··· ··· ··· ··· ··· ··· ···2 :   |   :   :   :   :   :   :   :   :···*··· ··· ··· ··· ··· ··· ··· ···1 :   |   :   :   : w :   :   :   :   :---*--- ··· ··· ··· ··· ··· ··· ···0 :   :   :   :   :   :   :   :   :   :··· ··· ··· ··· ··· ··· ··· ··· ···0   1   2   3   4   5   6   7   8"""Exceptions for invalid movesThe logic raises exceptions for:Invalid pawn moves, including out-of-board and illegal jumping events (exceptions.InvalidMove)Invalid fence placements, including out-of-board fences, overlapping fences, and fences that block unique pawn paths (exceptions.InvalidFence)Moves after game is over (exceptions.GameOver)
Package: pyquotegen
pyquotegenpyquotegenis a Python package that provides a simple way to generate random quotes.InstallationTo installpyquotegen, simply run:pipinstallpyquotegenUsageTo usepyquotegen, import the package and call theget_quotefunction:importpyquotegen# get a random quotequote=pyquotegen.get_quote()print(quote)# get a quote by specific categoryquote_by_category=pyquotegen.get_quote("inspirational")print(quote_by_category)Note: The default category is "motivation" if you don't provide any category.List Of Some Basic CategoriesmotivationalfriendshiptechnologyinspirationalfunnynatureduccessattitudecodingFeatureGenerates random quotesProvides quotes by specific categorySupports multiple categoriesLightweight and easy to useContributingContributions are welcome! To contribute, please fork the repository and submit a pull request.CreditsThis package was created by Arman Idrisi.LicenseThis project is licensed under the MIT License. See the LICENSE file for details.
Package: pyquoter
pyquoterA CLI tool to save your favorite quotes :).Installationpip install pyquoterUsageAll of the flags and options are visible with the--helpflagCreating quotespyquoter-q"This is the quote!"-a"Author Name!"-d11/20/2020-tTheseareTags

pyquoter-q"This Another quote"-d11/20/2020-tcoolinspirational# Author defaults to Unkownpyquoter-q"Just testing stuff"# All that is required is the quoteSearching quotesTo turn a quote insertion into a query just add the -f flagpyquoter-f-q"quote"# Outputs quotes that contain the word "quote"pyquoter-f-a"Abraham"# Outputs quotes with any author the word "Abraham" in their namepyquoter-f-i1# Outputs the quote with an ID of 1pyquoter-f-tinspirational# Outputs any quote tagged with the world inspirationalpyquoter-f# Outputs all the quotesSample output:[3] Pyquoter is alright I guess
 - Josh 11/20/2020Deleting quotesIf you have a quote that you think isn't up to par, you can delete it by referencing its IDpyquoter--delete1# Deletes the quote with an ID of 1Creating an AliasTyping pyquoter may be a bit verbose so if you have a .bashrc add the linealias pq=pyquoter
Package: pyquotes
pyquotesSingle quotes are superior. And if you disagree, there's an option for this as well.In any case, quotes should be consistent throughout the codebase, and not rely on tools like black
that reformat everything. Of course using those tools is perfectly fine if you want this behavior,
but sometimes youjustwant to avoid discussing the quote style during PR reviews).Usage$ pyquotes --help
Usage: pyquotes [OPTIONS] FILES...

  A tool that ensures consistent string quotes in your Python code.

  When passing a directory, all *.py files inside will be processed
  recursively.

  If any files needed changes, it exits with a non-zero status code.

Options:
  -V, --version                 Show the version and exit.
  -h, --help                    Show this message and exit.
  -D, --double-quotes           Prefer double quotes.
  -q, --quiet                   Do not output which files have been
                                reformatted.

  -v, --verbose                 Be more verbose and show all files being
                                processed.

  -d, --diff                    Only show diffs without updating files.
  -c, --check-only, --check     Only check files without updating them.
  --exclude PATTERN             Exclude files/directories matching this
                                pattern. Can be used multiple times. Replaces
                                the built-in excludes. Does not apply to
                                explicitly-specified files.

  -X, --extend-exclude PATTERN  Exclude files/directories matching this
                                pattern. Can be used multiple times. Extends
                                the built-in excludes. Does not apply to
                                explicitly-specified files.Use--diffor--check-onlyif you want to run this script in CI (usually using
flake8-quotes as explained below is the better choice though).Configurationexclude,extend-excludeanddouble-quotescan be configured via the following
files (looked up in this order, the first one containing settings is used):.pyquotes.cfg- ConfigParser format,settingsorpyquotessectionsetup.cfg- ConfigParser format,pyquotesortool:pyquotessectionpyproject.toml- TOML format,tool.pyquotessectionParsingpyproject.tomlrequirestomlto be installed; a warning is emitted
if the file exists and no config is found elsewhere andtomlis missing.Note thatexcludeshould not be used in most cases; unless you really need to
whitelist something that's excluded by default.setup.cfg[pyquotes]double-quotes=falseextend-exclude=htmlcov.vscodeThe same format can be used in.pyquotes.cfgas well.pyproject.toml[tool.pyquotes]double-quotes=falseextend-exclude=['htmlcov','.vscode']flake8If you use flake8, you may want to installflake8-quotesto also get warnings if the code currently has incorrect quotes. You can use the following options
if you want single quotes:[flake8]inline-quotes=singlemultiline-quotes=singledocstring-quotes=doubleavoid-escape=trueNote that flake8-quotes is completely independent from this tool, so inconsistencies are possible.
Please open an issue if you discover any such cases.
Package: pyquran
PyQuran: The Python package for Quranic AnalysisPyQuran is a package which provides tools for Quranic Analysis and Arabic texts.It is still a small package which needs a lot of your effort. We believe that it
is a seed of a fundamental general package for
computations on Quran with Python, even at the most basic level which is simply
retrieving Quran text.Before Islam, Arabic letters  were without  dots—rasm, which resulted in ambiguty, two or three
letters had the same rasm or form.Muslims have decided to remove this ambiguity by adding
dots above or below each letter of the ones which share the same rasm. Now each letter has a unique form. By the way,
originally, Quran was written using letters without dots.To enable researchers to use modern alphabet, old rasm or other, we introducealphabetical systems,
It is a dynamic construction of letters— Alphabetical Systems.Quran CorpusWe usetanzilQuran Corpus (Uthmani Text), it is inUTF-8encoding. You
can find all unique characters of Uthmanic Corpushere.There arespecial recitation symbolsمصطلحات الضبط in theUthmani Text, they are a guide for the reciter
to know the right positions to pause and the rules of tajweed.
We provide an interface to filter those symbols,on the fly while fetching from the corpus,
weDO NOTchange the corpus, NEVER.For the full details about filteringspecial recitation symbolsمصطلحات
الضبط.Current FeaturesQuran Retrieving.Advanced Searching, byTextandDiacriticsPatterns.Buckwalter Transliteration, back and forth.MultipleAlphabetical Systems.Words Frequency Table المعجم الترددى للألفاظ .PyQuran needs and Upcoming Features.Words Frequency Table filtered according to words meaning.Morphology analysis of words to their roots.Arabic tools for representing Arabic text for AI algorithms and neural
networks, for more serious Arabic text processing and understanding. Those
tools should take meaning, diacritics, roots and other morphology aspects in
account.Some PyQuran in-house tools and architecture enhancement will be on GitHub
Issues for you contributors to make PyQuran professional and easy to use.ContributingTo contribute and maintain PyQuran, Please readCONTRIBUTINGsection.DependenciesnumpypyarabicInstallFrom PyPI:$ pip3 install pyquranCiting@MISC {PyQuran2018,
author = "Waleed A. Yousef and
          Taha M. Madbouly and
          Omar M. Ibrahime and
          Ali H. El-Kassas and
          Ali O. Hassan and
          Abdallah R. Albohy",
title = "PyQuran: The Python package for Quranic Analysis",
howpublished = "https://hci-lab.github.io/PyQuran-Private",
year = "2018"}CommunicationAuthor Page
Package: pyqurl
Simple query string parser for LHS filtering, sorting and pagination. This project is directly based on Qurl by Hector Carballo (https://github.com/hector-co/Qurl).Installing$ pip install pyqurlUsagefrompyqurlimportcreate_query_from_string# Name contains "john"create_query_from_string("name[ct]=john")# Price is greater than 20create_query_from_string("price[gt]=20")# Disabled_at is not nullcreate_query_from_string("disabled_at[nn]=true")# Year is between 2020 and 2022create_query_from_string("year[rng]=2020,2022")# Color is equal to yellowcreate_query_from_string("color[eq]=yellow")# Same result if the operator is not presentcreate_query_from_string("color=yellow")# Category is drama, romance or comecycreate_query_from_string("category[in]=drama,romance,comedy")# Category is not horror or actioncreate_query_from_string("category[nin]=horror,action")
Package: pyqvrelite
pyqvreliteBasic client for interfacing with QVR Pro/Elite API.Explore the docs »View Demo·Report Bug·Request FeatureTable of ContentsAbout The ProjectBuilt WithGetting StartedPrerequisitesInstallationUsageContributingLicenseContactAcknowledgmentsAbout The ProjectInitially written by oblogic7, onhttps://github.com/oblogic7/pyqvrpro. I forked to add QVR Elite support which I'm using as myPR #4is stuck.(back to top)Built WithPython(back to top)Getting StartedTo get a local copy up and running follow these simple example steps.PrerequisitesPython >= 3.5Installationpython-mvenv.venv
..venv/bin/activate
pipinstallpyqvrelite(back to top)UsageUse this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.For more examples, please refer to theDocumentation(back to top)ContributingContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make aregreatly appreciated.If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull Request(back to top)LicenseDistributed under the MIT License. SeeLICENSEfor more information.(back to top)ContactWagner Sartori Junior -@trunetProject Link:https://github.com/trunet/pyqvrelite(back to top)Acknowledgmentsoblogic7/pyqvrproThanks for your QVR Pro implementationImg Shields
Package: pyqwikswitch
pyqwikswitch libraryQwikSwitch USB Modem library for Python 3Seehttp://www.qwikswitch.co.zafor more information on the Qwikswitch devices.The library contains threaded and async interfaces and supports relays, buttons, LED dimmers and decoding of varioussensorsQSUsb classGet a list of all devices & values.(http://localhost:2020/&device)QSUsb.devices()[{"id": "@0c26e0","name": "buitelig","type": "rel","val": "ON",
      "time": "1460146507","rssi": "45%"},
  .....]Long poll(http://localhost:8080/&listen)for device changes and
button presses. This is non-blocking and should be stopped manually (.stop())QSUsb.listen(callback)Set a specific device according to ID. (dim 5%) or 100 (on)(http://localhost:8080/@0ac2f0=5)QSUsb.set(id, value)Dimmers values can be adjusted to get a more linear behaviour by settingdim_adjbetween 1 - 2Example usageSeeexample.pyfor a basic usage and tests though the synchronous interface
Package: pyqywe-miniapp
Wechat MiniProgram Module for Python.Installationpip install pyqywe-miniappUsagefrom pyqywe_miniapp import get_session_key, get_userinfo, get_phone_numberMethoddef get_session_key(self, appid=None, secret=None, code=None, grant_type='authorization_code', storage=None):

def get_userinfo(self, appid=None, secret=None, code=None, grant_type='authorization_code', session_key=None, encryptedData=None, iv=None, storage=None):

def get_phone_number(self, appid=None, secret=None, code=None, grant_type='authorization_code', session_key=None, encryptedData=None, iv=None, storage=None):
Package: pyr2
pyr2Yet another radare2 python bindings.Compared toradare2-bindingsandradare2-r2pipe, this binding:Doesn't need any extra installation of radare2. Justpip installand you are ready to go.Gives you the full control of the core radare2 API and helps build your own tools.Installpip3install--upgradepyr2No need to install radare2since all dynamic libraries are bundled with the Python wheels.ExampleImplement a basic command line r2 by pyr2.importr2importctypesimportargparseclassR2:def__init__(self,bin):self._r2c=r2.r_core.r_core_new()fh=r2.r_core.r_core_file_open(self._r2c,ctypes.create_string_buffer(b"/bin/ls"),0b101,0)r2.r_core.r_core_bin_load(self._r2c,ctypes.create_string_buffer(b"/bin/ls"),(1<<64)-1)defcmd(self,cmd):r=r2.r_core.r_core_cmd_str(self._r2c,ctypes.create_string_buffer(cmd.encode("utf-8")))returnctypes.string_at(r).decode('utf-8')def__del__(self):r2.r_core.r_core_free(self._r2c)if__name__=="__main__":ap=argparse.ArgumentParser("Implement a basic command line r2 by pyr2")ap.add_argument("binary",help="The binary to analyse.")args=ap.parse_args()r2pipe=R2(args.binary)whileTrue:print("> ",end="")cmd=input()ifcmd.strip()=="q":breakprint(r2pipe.cmd(cmd))Note that all radare2 APIs are exported as bare ctypes function prototype. Be catious with c-style strings.Build InstructionsClone the repository and submodules.gitclonehttps://github.com/wtdcode/pyr2cdpyr2
gitsubmoduleupdate--init--recursiveSince radare2 choosesmesonas their alternative building system and it's cross-platform, the first step is installmeson.pip3installmesonBuild the package. Note that on Windows,x64 Native Tools Command Promptis required to build.python3setup.pybuildInstall and use.# Or pip3 install -e .pip3install.Creditsradare2: Awesome project.ctypeslib: Bindings generation.