Saravanan666/pypi-org huggingface dataset:
Package: pipcreate
# PipCreate[![img](https://badge.fury.io/py/PipCreate.png)](http://badge.fury.io/py/PipCreate)[![img](https://api.travis-ci.org/Carreau/PipCreate.png?branch=master)](https://travis-ci.org/Carreau/PipCreate)[![img](https://pypip.in/d/PipCreate/badge.png)](https://pypi.python.org/pypi/PipCreate)Creating Python package make simple.Because you should be focused on the feature of your packages, not on the hostingtesting building infrastructure.- [x] Choose package name if you have no idea.- [x] check that the name is not taken- [x] set up github remote- [x] hook up travis-ci with Github- [ ] hook Read the doc with Github- [ ] hook covertall with Github- [ ] help build and release- [ ] refuse to put on PyPi if travis failingBut as example are better:```bash$ python3 -m pipcreate frobulatorwill use target dir /Users/bussonniermatthias/eraseme# Will open github at the right page and ask you for a private token at first launch.Comparing "frobulator" to other existing package name...# Genrate Package name if you have no ideafrobulator seem to have a sufficiently specific nameLogged in on GitHub as  Matthias BussonnierWorkin with repository Carreau/frobulatorClonning github repository locallyCloning into 'frobulator'...warning: You appear to have cloned an empty repository.Checking connectivity... done.I am now in  /Users/bussonniermatthias/eraseme/frobulatorTravis user: Matthias Bussonniersyncing Travis with Github, this can take a while.........syncing doneEnabling travis hooks for this repositoryTravis hook for this repository are now enabled.Continuous interation test shoudl be triggerd everytime you push code to github/Users/bussonniermatthias/eraseme/frobulator# clone, do the first commit# re-push and open travis on build page to be sure all is right.```Rely heavily on other packages, TraviPy, pygithub and cookiecutter.While cookiecutter is nice and allow a lot of flexibility, I think it require too much thinkingor is too frightening when you don't have time to loose or is a beginnier.Pipcreate will make most decision for you allowing you to focus on what you like to.History-------0.1.0 (2014-01-11)---------------------* First release on PyPI.
Package: pip-create
pip-createTools to simplify the process of creating and sharing Python distributions topypi.This is a fork ofpip-initby@juanpabloaj. The primary difference is that it makes use of theJinja2templating engine to make the code templates more extensible.Installpip install pip-createOr, you can clone this repository, navigate to the directory in which you cloned this repository, and do apython setup.py installUsagepip-create…and then just follow the interactive prompts. Once you’re done, you’ll have a bright, new, shinysetup.py.LicenseThe MIT License (MIT)Copyright (c) 2015 Jack ManeyPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: pip-custom-platform
pip-custom-platformpip+wheelwrapper which allows you to choose a custom platform
name for building, downloading, and installing wheels.This package assumes you're running your own PyPI server and would like
support for wheels on named platforms that would otherwise be considered
equivalent by the wheel infrastructure (for example not all linux_x86_64 are
created equal).Default platform namesBy default, pip-custom-platform guesses a platform name for you based on thedistromodule for Linux, and uses the default platform name on Windows, OS
X, or other systems. Some examples:PlatformDefault Platform NameUbuntu Trusty (14.04)linux_ubuntu_14_04_x86_64Debian Jessie (8)linux_debian_8_x86_64CentOS 7linux_centos_7_x86_64Fedora 22linux_fedora_22_x86_64Red Hat 7linux_rhel_7_x86_64openSUSE 13.2linux_opensuse_13_x86_64You can choose your own platform name by passing--platform my_platformon
the command line.Installationpip install pip-custom-platformUsageBuilding wheelspip-custom-platform wheel --platform my-platform my-packageDownloading distributionspip-custom-platform install --platform my-platform --download . my-package(or with sufficiently new pip)pip-custom-platform download --platform my-platform --dest . my-packageInstalling packagespip-custom-platform install --platform my-platform my-package
Package: pipdate
pipdatepipdate is a collection of small pip update helpers. The commandpipdate# or python3.9 -m pipdateupdatesallyour pip-installed packages. (Only works on Unix.)There's a Python interface as well that can be used for update notifications.
Thisimportpipdatepipdate.check("matplotlib","0.4.5")will printThis can, for example, be used by package authors to notify users of upgrades of
their own packages.If you guard the check withimportpipdateifpipdate.needs_checking("matplotlib"):pipdate.check("matplotlib","0.4.5")then it will be performed at most everykseconds, wherekis specified
in the config file$HOME/.config/pipdate/config.ini, e.g., once a day[DEFAULT]
secondsbetweenchecks = 86400Installationpipdate isavailable from the Python Package
Index, so simply typepip install pipdateTestingTo run the pipdate unit tests, check out this repository and typepytestLicenseThis software is published under theGPLv3 license.
Package: pipdatedd
pipdatepipdate is a collection of small pip update helpers. The commandspipdate
pipdate3updatesallyour pip{3}-installed packages. (Only works on Unix.)There's a Python interface as well that can be used for update notifications.
Thisimportpipdatemsg=pipdate.check('matplotlib','0.4.5')print(msg)will print╭──────────────────────────────────────────────╮
│                                              │
│        Update available 0.4.5 → 2.2.2        │
│   Run pip3 install -U matplotlib to update   │
│                                              │
╰──────────────────────────────────────────────╯If you guard the check withifpipdate.needs_checking('matplotlib'):print(pipdate.check('matplotlib','0.4.5'),end='')then it will be performed at most everykseconds, wherekis specified
in the config file$HOME/.config/pipdate/config.ini, e.g., once a day[DEFAULT]
secondsbetweenchecks = 86400This can, for example, be used by module authors to notify users of upgrades of
their own modules.Installationpipdate isavailable from the Python Package
Index, so simply typepip install pipdateTestingTo run the pipdate unit tests, check out this repository and typepytestDistributionTo create a new releasebump the__version__number,publish to PyPi and GitHub:$ make publishLicensepipdate is published under theMIT license.
Package: pip-dep-bump
pip-dep-bumpBumps requirements.txt deps and updates them in the current virtualenvInstallationpipinstallpip-dep-bumpAlso installs a CLI alias calledpdbwhich can be used to invoke the program directlyUsageusage: __main__.py [-h] [-r requirements.txt] [-d]

pip-dep-bump CLI

options:
  -h, --help           show this help message and exit
  -r requirements.txt  The requirements.txt file to work off of. Default is ./requirements.txt
  -d                   Dry run, print contents of new requriements.txt
Package: pipdeps
Pipdeps shows/upgrades outdated packages with respect to existing
dependencies.Python 2.7 is required.In principle, resolving dependencies and requirements of all packages
and their versions is easy. Unfortunately, computing resources of
standard computer may not be sufficient even for little group of
packages/versions. In an effort to decrease number of possibilities, we
make some attempts to solve partial tasks. On the other hands, it may
lead to some unwanted situations. Currently, package extras are not
finished.Usage$pipdeps--helpusage: pipdeps [-h] [-e [EXCLUDE [EXCLUDE ...]]]
               (-l | -t | -u | -s [SHOW [SHOW ...]])

Pipdeps shows/upgrades outdated packages with respect to existing
dependencies.

optional arguments:
  -h, --help            show this help message and exit
  -e [EXCLUDE [EXCLUDE ...]], --exclude [EXCLUDE [EXCLUDE ...]]
                        Space-separated list of excluded package (and
                        version). Format package==version or package for all
                        versions
  -l, --list            show list of upgradeable packages and versions
  -t, --table           show table of upgradeable packages and versions
  -u, --upgrade         upgrade upgradeable packages
  -s [SHOW [SHOW ...]], --show [SHOW [SHOW ...]]
                        show detailed info about upgradeable packagesChangelog0.0.8 (2020-09-02)OtherFix requires-python. [Marek Chrastina]0.0.7 (2020-08-28)OtherFix platform_system. [Marek Chrastina]Update CI. [Marek Chrastina]0.0.6 (2020-03-25)OtherAdd python safety to CI. [Marek Chrastina]Add exclude argument. [Marek Chrastina]There is show list and show table arguments now. [Marek Chrastina]Update pyenv pip setuptools in CI. [Marek Chrastina]If only bdist is available, check if python_version satisfied python
platform version. [Marek Chrastina]0.0.5 (2019-10-21)OtherFix showing 0.0.0 version. [Marek Chrastina]0.0.4 (2019-10-21)OtherSerious bugs in pipdeptree, do not use it anymore. [Marek Chrastina]Requires.txt is not mandatory for metadata generator. [Marek
Chrastina]0.0.3 (2019-08-29)OtherCase vanished module; all deps are taken from metadata; hotfix
extras. [Marek Chrastina]0.0.2 (2019-08-16)OtherRemove version.py. [Marek Chrastina]Add history. [Marek Chrastina]0.0.1 (2019-08-16)OtherAdd documentation to CI. [Marek Chrastina]Add install test, version check and deploy to CI. [Marek Chrastina]Add pycodestyle to CI. [Marek Chrastina]Add show option. [Marek Chrastina]Requires of possible upgradable package versions has to be taken into
account. [Marek Chrastina]Collect data for all packages. [Marek Chrastina]Upgrade pip first. [Marek Chrastina]Check for python version. [Marek Chrastina]Tabulate print list. [Marek Chrastina]Add list option. [Marek Chrastina]Code refactoring. [Marek Chrastina]Make pylint happy. [Marek Chrastina]Add build ci. [Marek Chrastina]Add setup.py andinit.py. [Marek Chrastina]Add py script. [Marek Chrastina]Add LICENSE. [Marek Chrastina]Add README. [Marek Chrastina]
Package: pipdiff
pipdiff=======- Copied from https://gist.github.com/jzempel/4624227- Original author : Jonathan Zempel, https://github.com/jzempel- PyPI: https://pypi.python.org/pypi/pipdiff/Description-------View a summary list of package release differences between your local environment and PyPI.Installation-------pip install pipdiffUsage-------$ pipdiffDjango==1.4.3                            PyPI:Django==1.5Fabric==1.5.1                            PyPI:Fabric==1.6.0...zope.interface==4.0.3                    PyPI:zope.interface==4.0.5$
Package: pipdot
pipdotGenerate aGraphVizdotfile representing installedPyPIdistributions.InstallationpipinstallpipdotUsageApip>=22.0is needed.Generate aGraphVizdotfile:pipdot--show-extras-label1.dotConvert it to asvg(or other formats) image:dot-Tsvg-O1.dotwe'll get something like:Runpython-mpipdot--helpfor help messagesCHANGELOGv0.2date: 2022-2-28Update:UpdateJinja2to>=2.0,<4.0Updatepipto>=22.0Change:Rename CLI argumentoutfiletooutput, and the default isstdout.Add:A new--installed-onlyCLI argument.Optimize:Betterextrasnodes and edges in dot template.Remove:Removesetuptools_scm_git_archivedependency in project building.v0.1date: 2021-2-5AUTHORSLiu Xue Yan (liu_xue_yan@foxmail.com)
Package: pip-download
pip-download: A wrapper useful in offline scenario简体中文pip-download is a tool which can be used to download python projects and their dependencies listed on
pypi'sdownload filespage. If you run thepip-downloadcommand to download one project on a Linux platform, packages end with.whland can be directly installed on a Windows and a macOS platform will also be downloaded. In that way, you can use these downloaded packages to serve for a minimal pypi sever(likepypiserver) on your company internal network.At first, it usespip download xxxcommand to download packages of the projectxxxto a temp dir. Then it unpacks these downloaded packages' name and version to download all packages of the projectxxx. These downloaded packages include packages end with.whlbuilt on the Linux, Windows, macOS platform and the source packages end with.tar.gzor.zip.Installationpip-download is distributed onPyPIand is available on Linux/macOS and Windows and supports
Python 3.6+. You can simply install pip-download as below:$pipinstallpip-downloadHowever, it's a better choice to use a virtual environment:$python-mvenvvenv# On Windows:$.\venv\Scripts\activate# On Linux:$sourcevenv/bin/activate
$pipinstallpip-downloadvirtualenvis also a good choice.UsageAfter installation, you can use pip-download to download python projects and its dependencies.$pip-downloadflask
$pip-download-rrequirements.txt
$pip-downloadhatch-d/tmp/
$pip-dwonload-pycp37ujson
$pip-dwonload-pycp37-pwin_amd64ujsonAlso, you can put your common options in the config file,python_versionsandplatform_tagsare supported now:$pip-download--show-config
/some-path-to/settings.json

$vim/some-path-to/settings.json{"python-versions":["cp37"],"platform-tags":["win_amd64"]}$vim/some-path-to/settings.json{"python-versions":["cp37","cp36"],"platform-tags":["win_amd64","manylinux"]}For more usage, usepip-download --help.CreditsAll the people who work onClickAll the people involved in the projecthatch
Package: pip-downloader
pip-downloaderpip-downloaderhelps in allowing offline installations of python packages.pip downloadalready exists, which does something similar:Pro: Handles dependency resolution in the same waypip installdoes - so no confusionPro: It is useful to download all the source packages with the--no-binary:all:argument.Con: It downloads only 1 file per package (i.e. only source or only one of the wheel files)Con: For downloads of a different system (not the system you’re running it from) it expectsthe package and all it’s dependencies to have similar wheels (eg: Ifcp36m-manylinuxis the wheel for one library, all it’s dependencies should also have that wheel)pip-downloaderaims to solve the same issue but in a slightly different way:It uses the same dependency resolutionpip downloaduses but after resolving the dependenciesIt downloads all the files (source and all wheels) available for that version of the packageThis gives an experience that is more consistent with the online installation with pip as it has
all the files (all wheels and sources) for installation.InstallationIt is recommended to use the latest version of pip (currently - 19.1) when using pip-downloader.pipinstallpip-downloaderUsageThe command line utilitypip-downloadershould be available.# To get help about pip-downloaderpip-downloader--help# To fetch the list of packages and their versions that downloader will download (dry-run)pip-downloaderlistflask# To download the list of packages and their versions to the provided destinationpip-downloaderdownloadflask--dest/tmp/pypiKnown LimitationsDependencies mentioned insetup_requiresare not downloaded as pip’s dependency resolution
mechanism does not consider them at the moment. Common setup-time requirements are:
setuptools_scm, vcversioner, numpy, etc.Build dependencies mentioned inpyproject.tomlare not downlaoded as pip’s dependency manages
install/run-time dependencies at the moment. (These are needed only if source installation is
chosen when installing a package.)When solving for packages withsys_platformenvironment markers, the package resolution will
happen based on the machine you’re runningpip-downloaderfrom. Need to investigate on how to
resolve this issue.
Package: pipdu-sdk
PiPDU - Python SDKPiPDU is a Python package for controlling and monitoring PiPDU power distribution units.It allows you to:get global metricsget metrics for a specific socketget the state of a socketset the state of a sockettest the connection to the PiPDU unit.InstallationYou can install PiPDU using pip:pipinstallpipduUsageTo use PiPDU, import the PiPDU class from thepipdumodule, and create an instance of the class with the certificate, host, and optional API and metrics ports:frompipduimportPiPDUcertificate="path/to/certificate.pem"host="192.168.1.100"api_port=3000metrics_port=8000pdu=PiPDU(host,api_port,metrics_port,certificate)Getting the Global MetricsTo get the global metrics for all sockets, call thegetGlobalMetricsmethod:metrics=pdu.getGlobalMetrics()This method returns a list offloatsrepresenting the current drawn on each socket.Getting Metrics for a Specific SocketTo get the metrics for a specific socket, call thegetMetricsFormethod with the socket ID:socket_id=1metrics=pdu.getMetricsFor(socket_id)This method returns afloatrepresenting the current drawn by the specified socket.Getting the State of a SocketTo get the state of a socket, call thegetStateFormethod with the socket ID:socket_id=1state=pdu.getStateFor(socket_id)This method returns abooleanvalue representing the current state of the specified socket (Truefor on,Falsefor off).Setting the State of a SocketTo set the state of a socket, call thesetStateFormethod with the socket ID and the desired state (Truefor on,Falsefor off):socket_id=1state=Truepdu.setStateFor(socket_id,state)This method sets the state of the specified socket to the desired state.Testing the ConnectionTo test the connection to the PiPDU unit, call thetestConnectionmethod:connected=pdu.testConnection()This method returns abooleanvalue representing whether the connection to the PiPDU unit was successful (Truefor connected,Falsefor not connected).NotesThe certificate parameter is the path to the certificate file for HTTPS connections. If you are using HTTP, you can pass an empty string.The API port and metrics port default to3000and8000, respectively, but can be changed if necessary.
Package: pipe21
pipe21 - simple functional pipes[docs]Basic versionjust copy-paste it!Most frequently used operators. It's often easier to copypaste than install and import.classB:def__init__(self,f):self.f=fclassPipe(B):__ror__=lambdaself,x:self.f(x)classMap(B):__ror__=lambdaself,x:map(self.f,x)classFilter(B):__ror__=lambdaself,x:filter(self.f,x)or install using pip:pipinstallpipe21Exampleslittle docsfrompipe21import*x|Pipe(f)==f(x)x|Map(f)==map(f,x)x|Filter(f)==filter(f,x)x|Reduce(f)==reduce(f,x)simple pipesrange(5)|Pipe(list)# [0, 1, 2, 3, 4]range(5)|Map(str)|Pipe(''.join)# '01234'range(5)|Filter(lambdax:x%2==0)|Pipe(list)# [0, 2, 4]range(5)|Reduce(lambdaa,b:a+b)# 10print digitsrange(1_000_000)|Map(chr)|Filter(str.isdigit)|Pipe(''.join)Output:0123456789²³¹٠١٢٣٤٥٦٧٨٩۰۱۲۳۴۵۶۷۸۹߀߁߂߃߄߅߆߇߈߉०१२३४५६७८९০১২৩৪৫৬৭৮৯੦੧੨੩੪੫੬੭੮੯૦૧૨૩૪૫૬૭૮૯୦୧୨୩୪୫୬୭୮୯௦௧௨௩௪௫௬௭௮௯౦౧౨౩౪౫౬౭౮౯೦೧೨೩೪೫೬೭೮೯൦൧൨൩൪൫൬൭൮൯෦෧෨෩෪෫෬෭෮෯๐๑๒๓๔๕๖๗๘๙໐໑໒໓໔໕໖໗໘໙༠༡༢༣༤༥༦༧༨༩၀၁၂၃၄၅၆၇၈၉႐႑႒႓႔႕႖႗႘႙፩፪፫፬፭፮፯፰፱០១២៣៤៥៦៧៨៩᠐᠑᠒᠓᠔᠕᠖᠗᠘᠙᥆᥇᥈᥉᥊᥋᥌᥍᥎᥏᧐᧑᧒᧓᧔᧕᧖᧗᧘᧙᧚᪀᪁᪂᪃᪄᪅᪆᪇᪈᪉᪐᪑᪒᪓᪔᪕᪖᪗᪘᪙᭐᭑᭒᭓᭔᭕᭖᭗᭘᭙᮰᮱᮲᮳᮴᮵᮶᮷᮸᮹᱀᱁᱂᱃᱄᱅᱆᱇᱈᱉᱐᱑᱒᱓᱔᱕᱖᱗᱘᱙⁰⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉①②③④⑤⑥⑦⑧⑨⑴⑵⑶⑷⑸⑹⑺⑻⑼⒈⒉⒊⒋⒌⒍⒎⒏⒐⓪⓵⓶⓷⓸⓹⓺⓻⓼⓽⓿❶❷❸❹❺❻❼❽❾➀➁➂➃➄➅➆➇➈➊➋➌➍➎➏➐➑➒꘠꘡꘢꘣꘤꘥꘦꘧꘨꘩꣐꣑꣒꣓꣔꣕꣖꣗꣘꣙꤀꤁꤂꤃꤄꤅꤆꤇꤈꤉꧐꧑꧒꧓꧔꧕꧖꧗꧘꧙꧰꧱꧲꧳꧴꧵꧶꧷꧸꧹꩐꩑꩒꩓꩔꩕꩖꩗꩘꩙꯰꯱꯲꯳꯴꯵꯶꯷꯸꯹０１２３４５６７８９𐒠𐒡𐒢𐒣𐒤𐒥𐒦𐒧𐒨𐒩𐩀𐩁𐩂𐩃𐴰𐴱𐴲𐴳𐴴𐴵𐴶𐴷𐴸𐴹𐹠𐹡𐹢𐹣𐹤𐹥𐹦𐹧𐹨𑁒𑁓𑁔𑁕𑁖𑁗𑁘𑁙𑁚𑁦𑁧𑁨𑁩𑁪𑁫𑁬𑁭𑁮𑁯𑃰𑃱𑃲𑃳𑃴𑃵𑃶𑃷𑃸𑃹𑄶𑄷𑄸𑄹𑄺𑄻𑄼𑄽𑄾𑄿𑇐𑇑𑇒𑇓𑇔𑇕𑇖𑇗𑇘𑇙𑋰𑋱𑋲𑋳𑋴𑋵𑋶𑋷𑋸𑋹𑑐𑑑𑑒𑑓𑑔𑑕𑑖𑑗𑑘𑑙𑓐𑓑𑓒𑓓𑓔𑓕𑓖𑓗𑓘𑓙𑙐𑙑𑙒𑙓𑙔𑙕𑙖𑙗𑙘𑙙𑛀𑛁𑛂𑛃𑛄𑛅𑛆𑛇𑛈𑛉𑜰𑜱𑜲𑜳𑜴𑜵𑜶𑜷𑜸𑜹𑣠𑣡𑣢𑣣𑣤𑣥𑣦𑣧𑣨𑣩𑱐𑱑𑱒𑱓𑱔𑱕𑱖𑱗𑱘𑱙𑵐𑵑𑵒𑵓𑵔𑵕𑵖𑵗𑵘𑵙𑶠𑶡𑶢𑶣𑶤𑶥𑶦𑶧𑶨𑶩𖩠𖩡𖩢𖩣𖩤𖩥𖩦𖩧𖩨𖩩𖭐𖭑𖭒𖭓𖭔𖭕𖭖𖭗𖭘𖭙𝟎𝟏𝟐𝟑𝟒𝟓𝟔𝟕𝟖𝟗𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡𝟢𝟣𝟤𝟥𝟦𝟧𝟨𝟩𝟪𝟫𝟬𝟭𝟮𝟯𝟰𝟱𝟲𝟳𝟴𝟵𝟶𝟷𝟸𝟹𝟺𝟻𝟼𝟽𝟾𝟿𞅀𞅁𞅂𞅃𞅄𞅅𞅆𞅇𞅈𞅉𞋰𞋱𞋲𞋳𞋴𞋵𞋶𞋷𞋸𞋹𞥐𞥑𞥒𞥓𞥔𞥕𞥖𞥗𞥘𞥙🄀🄁🄂🄃🄄🄅🄆🄇🄈🄉🄊'chunked>>>range(5)|Chunked(2)|Pipe(list)[(0,1),(2,3),(4,)]Extended versionimportpipe21asPFizzBuzz(range(1,100)|P.MapSwitch([(lambdai:i%3==i%5==0,lambdax:'FizzBuzz'),(lambdai:i%3==0,lambdax:'Fizz'),(lambdai:i%5==0,lambdax:'Buzz'),])|P.Pipe(list))[1,2,'Fizz',4,'Buzz','Fizz',7,8,'Fizz','Buzz',11,'Fizz',13,14,'FizzBuzz',16,17,'Fizz',19,'Buzz','Fizz',22,23,'Fizz','Buzz',26,'Fizz',28,29,'FizzBuzz',31,32,'Fizz',34,'Buzz','Fizz',37,38,'Fizz','Buzz',41,'Fizz',43,44,'FizzBuzz',46,47,'Fizz',49,'Buzz','Fizz',52,53,'Fizz','Buzz',56,'Fizz',58,59,'FizzBuzz',61,62,'Fizz',64,'Buzz','Fizz',67,68,'Fizz','Buzz',71,'Fizz',73,74,'FizzBuzz',76,77,'Fizz',79,'Buzz','Fizz',82,83,'Fizz','Buzz',86,'Fizz',88,89,'FizzBuzz',91,92,'Fizz',94,'Buzz','Fizz',97,98,'Fizz']play random music from youtube links in markdown files:importpathlibimportrandomimportitertoolsimportreimportoperatorimportwebbrowserimportpipe21asP(pathlib.Path.home()/'docs/knowledge/music'# take a directory|P.MethodCaller('rglob','*.md')# find all markdown files|P.FlatMap(lambdap:p|P.IterLines())# read all lines from all files and flatten into a single iterable|P.FlatMap(lambdal:re.findall(r'\[(.+)\]\((.+)\)',l))# keep only lines with a markdown link|P.Map(operator.itemgetter(1))# extract a link|P.Pipe(list)# convert iterable of links into a list|P.Pipe(random.choice)# choose random link|P.Pipe(webbrowser.open)# open link in browser)all available methods referencereview of similar tools / alternativeswritten in pure python, no dependencies
Package: pipe2codeblock
pipe2codeblockPipe text into a code block in a markdown file.Originally designed for putting a terminal command's--helptext into aREADME.md.UsagePut a fenced codeblock in your target file with the info stringhelp.The fenced codeblock is defined as it is byCommonMark,
with the exception that it cannot be indented (to prevent spaces being lstripped inside the block).Then doyour_awesome_tool--help|p2cREADME.mdto pipe the text in, orp2cREADME.mdinput_file.txtto read from a file.The--tgtoption allows you to choose which info string to target (instead of"help").
Only the first instance will be used.Usageusage: p2c [-h] [--tgt TGT] outfile [infile]

Pipe text into a code block in a markdown file.

positional arguments:
  outfile
  infile

optional arguments:
  -h, --help  show this help message and exit
  --tgt TGT   Target a code block with a different info string (default
              'help')Generated by dogfooding:p2c --help | p2c README.md
Package: pipe4u
Descripción de proyectoHack4U Academy Courses LibraryUna biblioteca Python para consultar cursos de la academia Hack4U.Cursos disponibles:Introducción a Linux [15 horas]Personalización de Linux [3 horas]Introducción al Hacking [53 horas]InstalaciónInstala el paquete usandopip3:pip3installhack4uUso básicoListar todos los cursosfromhack4uimportlist_coursesforcourseinlist_courses():print(course)Obtener un curso por nombrefromhack4uimportget_course_by_namecourse=get_course_by_name("Introducción a Linux")print(course)Calcular duración total de los cursosfromhack4u.utilsimporttotal_durationprint(f"Duración total:{total_duration()}horas")