Saravanan666/pypi-org huggingface dataset:
Package: pythod
PythodTable of ContentsInstallationUsageConfiguration fileCLI UsageInstallationYou can install Pythod either by cloning the repository with:git clone https://github.com/not-so-cool-anymore/pythod.gitand then runpip install .inside the repository.Or you can install download and install it via Pip with:pip install pythodUsageConfiguration fileIn order to properly organize a directory, the tool uses a configuration file that contains information about content types, indicators of those content types and the target folder into which they will be moved.
The format of the default configuration file is the following:{"contents":[{"content_class":"<content_class_x>","target_directory":"<target_directory_x>","content_indicators":["<indicator>","<indicator>","<indicator>"]},{"content_class":"<content_class_y>","target_directory":"<target_directory_y>","content_indicators":["<indicator>","<indicator>","<indicator>"]}]}Wherecontent_classindicates the type of object that would be moved and must be eitherfileordirectory.target_directoryis the name of the directory in which files with matching content indicators will be moved.content_indicatorsis an array of strings which contains indicators about a specific set of files. For directories, it is part of their names, and for files - their file extensions.There is a default configuration file in the directory of the tool.
The file contains the following:{"contents":[{"content_class":"file","indicators":["mkv","mp4","flv","avi","mov","mpg","amv","wmv","mov"],"target_directory":"movies_and_videos"},{"content_class":"file","indicators":["jpg","jpeg","tiff","bat","gif","bmp","png","exif","svg"],"target_directory":"images"},{"content_class":"file","indicators":["txt","doc","docx","md"],"target_directory":"text_and_documents"},{"content_class":"file","indicators":["pdf"],"target_directory":"pdfs"},{"content_class":"file","indicators":["zip","rar","tar","gz"],"target_directory":"archives"},{"content_class":"file","indicators":["exe","bin","msi"],"target_directory":"executables"},{"content_class":"directory","indicators":["movie","xvid","brip","dvdrip","x264","release"],"target_directory":"movies_and_videos"},{"content_class":"file","indicators":["cpp","c","cs","py","go","java","lua","rpy","sh","bas","pl","r","swift","pas","asm"],"target_directory":"source_files"}]}CLI usageTo use the tool type:pythod--dir<ABS/PATH/TO/DIRECTORY/TO/ORGANIZE>--config<PATH/TO/CUSTOM/CONFIG/FILE>Where--diris required parameter and--configis optional. If--configis not provided, the default configuration will be loaded.
Package: pythogen
Generator of python HTTP-clients from OpenApi specification based onhttpxandpydanticDocumentation:https://artsmolin.github.io/pythogenSource Code:https://github.com/artsmolin/pythogenExamples:syncandasyncclients forPetstore OpenAPIInstallationYou can install the librarypipinstallpythogenor use Dockerdockerpullartsmolin/pythogenGenerationpath/to/input— path to the directory with openapi.yaml;path/to/output— the path to the directory where the generated client will be saved;Generate a client using the installed librarypythogenpath/to/input/openapi.yamlpath/to/output/client.pyor via Dockerdockerrun\-v./path/to/input:/opt/path/to/input\-v./path/to/output:/opt/path/to/output\artsmolin/pythogen\path/to/input/openapi.yaml\path/to/output/client.pyUsagefrompetstore.client_asyncimportClientfrompetstore.client_asyncimportPetfrompetstore.client_asyncimportEmptyBodyfrompetstore.client_asyncimportFindPetsByStatusQueryParamsclient=Client(base_url="http://your.base.url")pets:list[Pet]|EmptyBody=awaitclient.findPetsByStatus(query_params=FindPetsByStatusQueryParams(status="available"),)
Package: pytholenium
Pytholeniumpytholenium is a simple but powerful python-selenium selector that allows you to combine selenium with attribute seleccions, combining multiple "wait/get/do" actions in a single lineGetting StartedTo install pytholenium using pip just do:pip install pytholeniumEasy usage exampleHaving the following html:<buttonname="my_button"some_attribute="atenas">Click me</button><buttonname="my_button"some_attribute="hares">Click me</button><!-- You want to click this one --><buttonname="other_button"some_attribute="hares">Click me</button>Attempting to wait for element to be displayed, then selecting all name="my_button", from that subset selecting some_attribute="hares", finally clicking the element, could be mulitple lines of code.Using pytholenium you can wait, get, do action, in a single line mixing selections types:importpytholeniumasplpl.wait_do(driver=driver,params={"name":"my_button","some_attribute":"hares"},action="click")DocumentationYou can find more examples in the ourDocumentationLicenseThis project is licensed under the GNU License - see theLICENSEfile for details
Package: pytholic
PytholicDevelop and praise God at the same time!DescriptionMy main goal with Pytholic is to show that we, Catholics, can praise God and teach about Him in any way possible. Just like what Saint Paul said in 1 Corinthians 10, 31:"Whatever you eat, then, or drink, and whatever else you do, do it all for the glory of God."My second goal with this project was to practice a different kind of penance other than feast and abstinence in this year's lent (I mean, programming is not a penance,  not for me, but doing it instead of play a game or watch a movie is).InstalationpipinstallpytholicUsagePytholic contains:The 4 gospels of the Bible.12 prayers.4 Icons as ASCII.A function that sanctify a string.A function that explains the doctrine of the Trinity.The Bible class has 4 methods, matthew(), mark(), john() and luke(), they return a verse or a list of verses.frompytholic.bible.bibleimportBiblebible=Bible()# returns one verseprint(bible.matthew(1,1))# returns a list of versesprint(bible.matthew(1,1,5))To return one of the 12 prayers.frompytholic.prayersimportPrayersprayer=Prayers()# each prayer is a method that prints a stringprayer.our_father()To return one of the 4 images.frompytholic.iconsimportIconAsciiicon=IconAscii()# returns an Ascii representation of an iconprint(icon.pantocrator())To sanctify a string.frompytholic.varietyimportsanctifytext="Hello World, i'm Charles 5 and i'm cool guy :D"sanctify(text)To get an explanation of the Trinity.frompytholic.varietyimporttrinity# it will return a mini-game with a pythonic explanation of the Trinitytrinity()For more information, accesshttps://pytholic.readthedocs.io/Contribute please 🇻🇦As I said, this project was made as a form of penance, there's nothing special on it, but it can be improved. So if you are a catholic and a developer, please, consider helping this small project.Viva Cristo Rei!
Package: pytholic-stringutils
DescriptionI created a simplestringutilslibrary with three basic functions.StepsCreate a simple libraryCreate a simplestringutilslibrary. I included only three functions in it to keep it simple.Add docstringsI added function-level and file-level strings (where necessary). For function level strings, I followed thenumpydocstring format.Add requirementsI included requirements i.e.base.txtandcheck.txt. I added them under therequirementsfolder.Write testsI added some tests for the functions to verify if they are working well. I am usingPytestfor that.pytest --cov stringutils --cov-report=term-missing --tb=line
pytest --cov . --cov-report=xml --tb=lineNoteWe can manually import our library functions for tests using__init__.py.Or we can leave it empty and use[setup.py](http://setup.py)to install and use the package in our test.Add pre-commit hooksNext, I addedpre-commithooks to make sure that my code is in compliance with the best python practices.pip install pre-commit
pre-commit installIt will work with each commit. To run manually:pre-commit run --all-filesGitHub WorkflowsWe have two workflows i.e.test.ymlto test our code andlint.ymlto applypre-commithooks uponpushandpull-requeststo themain/masterbranch. I am also usingCodecovaction to upload test coverage report. Check the referencelinkfor more details.Packagingpython setup.py sdist bdist_wheel
or
python -m build (pip install build)twine check dist/*
twine upload dist/*
Package: pythologist-test-images
# pythologist-test-imagesImages for use in unit tests etc.List available datasets:```pythonfrom pythologist_test_images import TestImagesprint(TestImages().datasets)```> ['IrisSpatialFeatures', 'Small', 'Tiny']get a path pointing to the dataset```pythonpath = TestImages().raw('IrisSpatialFeatures')print(path)```> '/Source/pythologist-test-images/data/IrisSpatialFeatures/Example'get a CellDataFrame pythologist object (requires pythologistreader and pythologist `pip install pythologist-test-images[h5]`)```pythoncdf = TestImages().celldataframe('Tiny')tdf = cdf.threshold('T-CELL','PD1').threshold('OTHER','PDL1').threshold('TUMOR','PDL1')tdf.loc[tdf['sample_name'].str.contains('I'),'project_name'] = 'SlideModelInfiltrated'tdf.loc[tdf['sample_name'].str.contains('E'),'project_name'] = 'SlideModelExcluded'tdf.loc[tdf['sample_name'].str.contains('U'),'project_name'] = 'SlideModelUniform'tdf['project_id'] = tdf['project_name'](ggplot(cnts,aes(x='sample_name',y='mean_density_mm2',ymin='mean_density_mm2+stderr_density_mm2',ymax='mean_density_mm2-stderr_density_mm2',fill='project_name'))+ geom_bar(stat='identity')+ geom_errorbar()+ facet_wrap('phenotype_label',scales='free_y')+ theme_bw()+ theme(panel_spacing_x=0.5)+ theme(figure_size=(6,6)))```![Image of counts](https://github.com/jason-weirather/pythologist-test-images/raw/master/images/counts.png?raw=true)
Package: pythology
Pythology is a scientific python package with the purpose of simplifying the implementationof epidemiological compartmental models.Using object-oriented concepts, users can build each compartment and each transfer rate between compartmentsin a much more high-level way than implementing the model by hand, only needing to specify each of these elements' characteristics.Thus, the package aims to eliminate the need for advanced mathematicalknowledge and allow the user to focus more on the conceptual and biological aspect with freedomto explore more model and parameter possibilities.
Package: pythomata
PythomataPython implementation of automata theory.LinksGitHub:https://github.com/whitemech/pythomataPyPI:https://pypi.org/project/pythomata/Documentation:https://whitemech.github.io/pythomataChangelog:https://whitemech.github.io/pythomata/release-history/Issue Tracker:https://github.com/whitemech/pythomata/issuesDownload:https://pypi.org/project/pythomata/#filesInstallfromPyPI:pip install pythomataor, from source (e.g.developbranch):pip install git+https://github.com/whitemech/pythomata.git@developor, clone the repository and install:git clone htts://github.com/whitemech/pythomata.git
cd pythomata
pip install .How to useDefine an automaton:frompythomataimportSimpleDFAalphabet={"a","b","c"}states={"s1","s2","s3"}initial_state="s1"accepting_states={"s3"}transition_function={"s1":{"b":"s1","a":"s2"},"s2":{"a":"s3","b":"s1"},"s3":{"c":"s3"}}dfa=SimpleDFA(states,alphabet,initial_state,accepting_states,transition_function)Test word acceptance:# a word is a list of symbolsword="bbbac"dfa.accepts(word)# True# without the last symbol c, the final state is not reacheddfa.accepts(word[:-1])# FalseOperations such as minimization and trimming:dfa_minimized=dfa.minimize()dfa_trimmed=dfa.trim()Translate into agraphviz.Digraphinstance:graph=dfa.minimize().trim().to_graphviz()To print the automaton:graph.render("path_to_file")For that you will need to install Graphviz.
Please look at theirdownload pagefor detailed instructions depending on your system.The output looks like the following:FeaturesBasic DFA and NFA support;Algorithms for DFA minimization and trimming;Algorithm for NFA determinization;Translate automata into Graphviz objects.Support for Symbolic Automata.TestsTo run the tests:toxTo run only the code style checks:tox -e flake8 -e mypyDocsTo build the docs:mkdocs buildTo view documentation in a browsermkdocs serveand then go tohttp://localhost:8000LicensePythomata is released under the GNU Lesser General Public License v3.0 or later (LGPLv3+).Copyright 2018-2020WhiteMechRelease History0.3.2 (2020-03-22)Bug fixing and minor improvements.0.3.1 (2020-02-28)Improved CI: using GitHub actions instead of Travis.Included many other checks:safety,black,liccheck.Improved documentation.0.3.0 (2020-02-09)Main refactoring of the APIs.Introduce interfaces for better abstractions:Alphabet,FiniteAutomatonetc.DFAandNFArenamedSimpleDFAandSimpleNFA, respectively.IntroducedSymbolicAutomatonandSymbolicDFA, where the guards
on transitions are propositoinal formulas.0.2.0 (2019-09-30)Refactoring of the repository0.1.0 (2019-04-13)Basic support for DFAs and NFAs.Algorithms for DFA minimization and trimming.Algorithm for NFA determinization.
Package: pythomate
PythomatePacotepythomateinicia fluxo(s) e rotina(s) de ferramentas Microsoft (como Power Automate e Power Bi) via linha de comando.
Aliado ao agendador de tarefas Windows cria-se gatilho(s)[^1].InstalaçãoOpythomateestá disponível no Python Package Index -PyPI, sendocompatível apenas com sistema operacional Windows.
Ele pode ser instalado utilizando-se o comando[^2]:# Sugerimos a instalação em ambiente virtual$pipinstallpythomateNecessário adicionar aoPATHdo Windows caminho de instalação das ferramentas Microsoft desejadas[^3].UsoDiretamente na linha de comando:# Não copie e cole cegamente o comando abaixo.# Substituo <nome-fluxo> pelo nome do fluxo que deseja iniciar.$pythomaterun<ferramenta><nome-fluxo>Para maiores informações, consulte documentação disponível no próprio CLI, viapythomate --help.ContribuiçõesVeja o arquivoCONTRIBUTING.mdpara mais detalhes.LicençaOpythometeé licenciado sob a licença MIT.
Veja o arquivoLICENSE.txtpara mais detalhes.Teste push.[^1]: Gatilhos que, em geral, não são permitidos em versões gratúitas destas ferramentas.
[^2]: Sugerimos a utilização da Git Bash disponível na instalação do programaGit for Windows.
[^3]: Como exemplo, sabemos que a ferraemnta Power Automate, em geral, encontra-se instalada emC:/Program Files (x86)/Power Automate Desktop/.CHANGELOG - Controle de alteraçõesDocumentação das principais alterações deste repositório.
Baseado na filosofiaMantenha um Changelog.[0.2] - 2023-11-10Publicação primeiro comandopythomate run automate <nome-fluxo>.[0.1] - 2023-10-16Publicação estrutura inicial necessária para funcionamento do pacote. Sem nenhuma função implementada.
Package: python101
# ໂປຣແກຣມອະທິບາຍພື້ນຖານພາສາ Python### ວິທີຕິດຕັ້ງເປີດ CMD / Terminal`python pip install python101 `### ວິທີໃຊ້ງານເປີດ IDLE ແລ້ວພິມ…`python >>> import python101 `from python101.basicpython import BasicPython, Comment, PiPy101
var1 = BasicPython()
var2 = PyPi101()
var3 = Comment()print(var1.GetStart)
print(‘==================’)
print(var1.Syntax)
print(‘==================’)
print(var1.Comment)
print(‘==================’)
print(var1.Variable)
print(‘==================’)
print(var1.DataType)
print(‘==================’)
print(var1.Casting)
print(‘==================’)
print(var1.Condition)
print(‘==================’)
print(var1.WhileLoop)
print(‘==================’)
print(var1.ForLoop)
print(‘==================’)
print(var1.Function)
print(‘==================’)
print(var1.Lambda)
print(‘==================’)
print(var1.Class)
print(‘==================’)
print(var1.Inheritance)
print(‘==================’)
print(var1.Scope)
print(‘==================’)
print(var1.Module)
print(‘==================’)
print(var1.Pip)
print(‘==================’)
print(var1.TryExcept)
print(‘==================’)
print(var2.desc)
print(‘==================’)
print(var3.single)
print(‘==================’)
print(var3.multiple)
Package: python-10minutemail
10MinuteMailPython wrapper for10minutemailInstallationpip install python-10minutemailUsagefromminutemailimportMailimporttime# Create a new 10 minute mailmail=Mail()print(mail)# Keep on checking for a new mail/messagewhileTrue:ifmail.new_message():# Check for new mailprint(mail.fetch_message())# Fetch all the messagestime.sleep(2)Sample message list[{"read":false,"expanded":false,"forwarded":false,"repliedTo":false,"sentDate":"2021-05-10T07:32:41.000+0000","sentDateFormatted":"May 10, 2021, 7:32:41 AM","sender":"sauravnk30@gmail.com","from":"[Ljavax.mail.internet.InternetAddress;@37e8c463","subject":"Test message","bodyPlainText":"Test description\r\n","bodyHtmlContent":"<div dir=\"ltr\">Test description</div>\r\n","bodyPreview":"Test description\r\n","id":"2118940165622869807"}]Warning: If you overuse this tool/API, then 10minutemail.com may block your IP address.
Package: python23_support
This is a Python module for backporting common Python 2.3 features to 2.2.The purpose of backporting Python programs to Python 2.2
is to allow greater compatibility with existing python setups.
For example, Python 2.2 compatibility means that Python applications
will be compatible with widely used Linux distibutions such as
RedHat 9/8.0/7.3 and Fedora Core 1 straight out of the box.
Package: python2-hwloc
=================================Python 2 and 3 bindings for hwloc=================================I have retired and am no longer maintaining or developing this. I could work on it more if anyone is interested in using it.If there is someone who would like to take it over, please contact me.Example pip install from git source with virtualenv for Python2 on Fedora:.. code:: bashsudo dnf install python2 python2-devel python2-tools numactl-libs \numactl-devel gettext pandoc texlive hwloc-devel hwloc-libs \libibverbs libibverbs-devel python2-libsvirtualenv -p python2 p2hwloccd p2hwloc/source bin/activatepip install Cython Babelpip install python2-libnumapip install python2-hwloc# try it!python2 -c "import hwloc;print hwloc.version_string()"Example for Python3 on Fedora:.. code:: bashsudo dnf install python3 python3-devel python3-tools hwloc-devel \hwloc-libs libibverbs libibverbs-devel numactl-libs numactl-devel \gettext pandoc texlive python3-libsvirtualenv -p python3 p3hwloccd p3hwlocsource bin/activatepip install Cython Babelpip install python3-libnumapip install python3-hwloc# try it!python3 -c "import hwloc;print(hwloc.version_string())"Debian9, Python2:.. code:: bashsudo apt-get updatesudo apt-get install build-essential virtualenv git libpython2.7-dev \libnuma-dev libhwloc-dev libibverbs-devvirtualenv -p python2 p2pipcd p2pipsource bin/activatepip install Cython Babelpip install python2-libnumapip install python2-hwloc# try it!python2 -c "import hwloc;print hwloc.version_string()"Python3 on Debian9:.. code:: bashsudo apt-get updatesudo apt-get install build-essential virtualenv git libpython3.5-dev \libnuma-dev libhwloc-dev libibverbs-devvirtualenv -p python3 p3pipcd p3pipsource bin/activatepip install Cython Babelpip install python2-libnumapip install python2-hwloc# try it!python3 -c "import hwloc;print(hwloc.version_string())"
Package: python2-secrets
# Secrets backportBackport of Python 3.6’s [secrets](https://docs.python.org/3/library/secrets.html) module for Python 2.7, 3.4 and 3.5.ChangeLog1.0.5 (2019-01-29)Explicit Python 3.4 and 3.5 support in setup.py and README.1.0.4 (2018-11-16)Fix: import for python 31.0.3 (2018-11-07)Add MANIFEST.in1.0.2 (2018-08-18)Set lower version to 2.7.7 for compare_digest import1.0.1 (2018-08-18)Add compatibility to python2.6 by creating a default compare_digest1.0.0 (2018-09-17)Initial backport of secrets module
Package: python2-utmp
====utmp====Pure-Python library to decode/read utmp and wtmp files.Please note that there is an alternative library which uses the underlying C API: pyutmp_This package requires Python 2.7.Python 3.x users: use utmp_. This is a fork of utmp_ which adds nothing but a dependency on enum_, since it's not part of the Python 2.x stdlib.What is utmp/wtmp?==================**utmp**, **wtmp**, **btmp** and variants such as **utmpx**, **wtmpx** and **btmpx** are files on Unix-like systems that keep track of all logins and logouts to the system.The utmp file keeps track of the current login state of each user. The wtmp file records all logins and logouts history. The btmp file records failed login attempts.On Linux the ``wtmp`` and ``btmp`` files are usually located in the ``/var/log/`` directory.Usage=====The ``utmp.read`` function decodes a binary utmp/wtmp stream and yields record objects:.. code-block:: pythonwith open('/var/log/wtmp', 'rb') as fd:buf = fd.read()for entry in utmp.read(buf):print(entry.time, entry.type, entry).. _pyutmp: https://pypi.python.org/pypi/pyutmp
Package: python2verilog
python2verilogThis tool facilitates the conversion of select Python functions (including generators!) into synthesizable sequential SystemVerilogIdeal for quickly translating higher-level "CPU code" into hardware descriptions for use on FPGAs, without needing to interface with or including a CPU in the designTestbenches can be automatically generated if the user uses the function within their Python code or provides explicit test casesfrompython2verilogimportverilogify@verilogifydefhrange(base,limit,step):i=basewhilei<limit:yieldii+=stepprint(list(hrange(0,10,3)))A live transpile demo can be foundhere.SpecificationsSome constrains on Python functions include:Supports only signed integral input/output and operationsMust be apure functionUnsupported Python paradigms include but are not limited to the following:Global (nonlocal) variables, instead declare them within the function with minimal overheadKeyword parameters and default arguments, instead use explicit positional argumentsUsage and InstallationTry it inGoogle Collabor check outexamples/!python3 -m pip install --upgrade pippython3 -m pip install python2verilogTested GenerationsYou may find the output of theintegration testingas aGithub Artifactavailable for download.For DevelopersTo setup pre-commit, runpre-commit install.Github Issuesare used for tracking.Sphinx is used for the docs. Follow thesphinx workflowto generate a local copy.TestingRequirementsFor most up-to-date information, refer to thepytest workflowor thepackaging workflow.A Ubuntu environment (WSL2 works too, make sure to have the repo on the Ubuntu partition, asos.mkfifois used to avoid writing to disk)Install required python libraries withpython3 -m pip install -r tests/requirements.txtFor automatic Verilog simulation and testing, installIcarus Verilogand its dependencies withsudo apt-get install iverilog expected(uses theunbufferinexpected).The online simulatorEDA Playgroundcan be used as a subsitute if you manually copy-paste the module and testbench files to it.Running TestsTo run tests, usepython3 -m pytest.CLI arguments for test configuration can be found intests/conftest.py.Usegit clean -dxfto remove gitignored and generated files.