Saravanan666/pypi-org huggingface dataset:
Package: crunchy
CrunchyA python wrapper aroundspringand cram (samtools) to compress fastq to spring and bam to cram. When compressing fastqs to spring an integrity check can be performed by using flag:crunchy compress spring --spring-path <springfile> --first <read_1.fastq>  --second <read_2.fastq> --check-integrityInstallPippip install crunchyDockerThis will install crunchy as well as samtools and spring within the container.docker pull clinicalgenomics/crunchy:0.5Run crunchy using:docker run clinicalgenomics/crunchy:0.5 crunchyDevelopersgit clone https://github.com/Clinical-Genomics/crunchy
pip install -e .
crunchy --help
Usage: crunchy [OPTIONS] COMMAND [ARGS]...

  Base command for crunchy

                .---. .---.
               :     : o   :    me want cookie!
           _..-:   o :     :-.._    /
       .-''  '  `---' `---' "   ``-.
     .'   "   '  "  .    "  . '  "  `.
    :   '.---.,,.,...,.,.,.,..---.  ' ;
    `. " `.                     .' " .'
     `.  '`.                   .' ' .'
      `.    `-._           _.-' "  .'  .----.
        `. "    '"--...--"'  . ' .'  .'  o   `.
        .'`-._'    " .     " _.-'`. :       o  :
      .'      ```--.....--'''    ' `:_ o       :
    .'    "     '         "     "   ; `.;";";";'
   ;         '       "       '     . ; .' ; ; ;
  ;     '         '       '   "    .'      .-'
  '  "     "   '      "           "    _.-'

Options:
  --spring-binary TEXT            Path to spring binary  [default: spring]
  --samtools-binary TEXT          Path to spring binary  [default: samtools]
  -t, --threads INTEGER           Number of threads to use for spring
                                  compression  [default: 8]
  -r, --reference TEXT            Path to reference genome
  --log-level [DEBUG|INFO|WARNING]
                                  Choose what log messages to show
  --tmp-dir TEXT                  If specific temp dir should be used
  --help                          Show this message and exit.

Commands:
  auto        Run whole pipeline by compressing, comparing and deleting...
  compare     Compare two files by generating checksums.
  compress    Compress genomic files
  decompress  Decompress genomic filesWorkflowEach command can be run separately. To compress all fastq pairs below a directory runcrunchy auto spring <path_to_dir>.Recursively find all fastq pairsCompress all pairs with springfile_1.fastq + file_2.fastq (spring)-> file.springDecompress with springfile.spring (spring)-> file_1.spring.fastq + file_2.spring.fastqCompare checksum with previousfile_1.spring.fastq + file_1.fastq (hashlib)-> compareDelete fastq(If the compression was lossless)file_1.fastq + file_2.fastq (rm)->
Package: crunchyroll
python-crunchyroll==================Python interface to Crunchyroll's undocumented APIs and utilitiesfor working with the returned data. Eventual plan is to create a betterXMBC plugin.### Requirements* Python 2.6+* requests* tlslite### UsagePretty much anything of interest is available now, including the RTMPE streamdata and decrypted and formatted subtitles.Example usage:~~~~>>> from crunchyroll.apis.meta import MetaApi>>> api = MetaApi()>>> pprint([s.name for s in api.list_anime_series(limit=5)])[u'07 Ghost',u'11eyes',u'A Bridge to the Starry Skies - Hoshizora e Kakaru Hashi',u'A Dark Rabbit has Seven Lives',u'Abunai Sisters']>>> space_brothers = api.search_anime_series('Space Brothers')[0]>>> pprint(space_brothers.description)u'To follow his brother Hibito to the moon, Mutta will attempt to become anastronaut at the age of 32.  Unaware of his own talent, Mutta chases hisdreams to get back in front of his younger brother.'>>> sb_episodes = api.list_media(space_brothers)>>> len(sb_episodes)49>>> ep = [e for e in sb_episodes if e.episode_number == '40'][0]>>> print ep.episode_number, ep.name, ep.free_available40 Heaven and Hell True>>> api.login(username=username, password=password)True>>> stream = api.get_media_stream(ep)>>> subs = stream.default_subtitles.decrypt().get_ass_formatted()>>> print '\n'.join(subs.split('\n')[:9])[Script Info]Title: English (US)ScriptType: v4.00+WrapStyle: 0PlayRexX: 704PlayResY: 400Subtitle ID: XXXXXLanguage: English (US)Created: 28 days ago>>> [s.language for s in stream.subtitle_stubs]['English (US)', u'Espa\xf1ol', u'Fran\xe7ais (France)', u'Portugu\xeas (Brasil)']>>> fr_subs = api.unfold_subtitle_stub(stream.subtitle_stubs[2]).decrypt().get_srt_formatted()>>> print '\n'.join(fr_subs.split('\n')[:11])100:00:00,760 --> 00:00:02,940Tiens ? Ça ne s'ouvre pas.200:00:04,500 --> 00:00:06,770Tourne le levier vers la gauche.300:00:07,360 --> 00:00:10,150Lequel ?~~~~### TestingRun the unit tests with:$ python setup.py testNote that some of the unit tests will use a CR account which should be madeavailable in the `CRUNCHYROLL_USERNAME` and `CRUNCHYROLL_PASSWORD` environmentvariables.### LICENSEThis project is licensed under GPLv2+, see LICENSE for more details.
Package: crunner
CrunnerCrunner is small application to run test after every change and notify about resultsMain features:Continuously watch directoriesExecute proper tests after every changeSend notification about test resultTest framework independentNotifier independentRequirementsPython 2.7watchdogmockInstallationpip install crunnerDownloadLatest version of package is available indrone.io project artifacts <a href=”https://drone.io/github.com/pchomik/crunner/files”>.ConfigurationConfiguration file.crunner.jsonhas to created in user home directory. The format of the file looks like below:{
  "main": {
    "run_on_start": true,
    "delay": 5
  },
  "notifier": {
    "cmd": "/usr/bin/notify-send",
    "img_arg": "-i",
    "msg_arg": "",
    "add_args": ""
  },
  "tester": {
    "cmd": "py.test",
    "args": "-s --timeout 1 --pep8"
  },
  "projects": {
    "pytest-crunner": {
      "active": true,
      "test_path": "/home/user/crunner/test/",
      "project_path": "/home/user/crunner",
      "watching_types": [".*.py"]
    }
  }
}Presented configuration is notifier and test framework independent.
It is possible to extend this configuration to watch multiple projects by adding new configuration project.ExecutionThe main command is:crunExecuted without argument will watch and test all projects configured as active.Executed with project name argument will watch and test only specified project.# To watch and test all active projects
crun

# To watch and test only one project
crun some_projectLicensecrunner - Application to run test after every change and notify about results.Copyright (C) 2014 Pawel ChomickiThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Package: crunpyroll
Features 🔥Fully async (httpx)Python 3.7+ supportClean and modern codeUpdated to latest Crunchyroll APIInstallation ⚙️# Using Gitpipinstall-Ugit+https://github.com/stefanodvx/crunpyroll# Using PyPi (Recommended)pipinstall-UcrunpyrollDocumentation 📄The documentation page undergoes automatic updates with each push. To access the latest documentation page, kindly refer to ourRead the Docsproject.Example Code ❓importcrunpyrollimportasyncioclient=crunpyroll.Client(email="email",password="password",locale="it-IT")asyncdefmain():# Start client and loginawaitclient.start()# Search for Attack on Titanquery=awaitclient.search("Attack On Titan")series_id=query.items[0].idprint(series_id)# Retrieve all seasons of the seriesseasons=awaitclient.get_seasons(series_id)print(seasons)asyncio.run(main())Downloading content 🔑Crunchyroll has recently implemented the Widevine and PlayReadyDigital Rights Management (DRM)systems, which has led to challenges for certain users attempting to download content from the platform. Currently, there are two available methods for downloading content from the platform:UsingClient.get_streamsmethod: this is the latest and 'right' way to get streams. Provided streams will be protected by Widevine and PlayReady DRMs.UsingClient.get_old_streamsmethod: this method will provide access to unprotected streams, eliminating the need for concern regarding DRM.[!WARNING]
It is important to note that this method relies on a deprecated endpoint, and there is a possibility that it may cease to function unexpectedly. We strongly recommend updating your code to incorporate theClient.get_streamsmethod for a more reliable and sustainable solution.Subsequently, the following code provides an illustrative example of obtaining decryption keys through the utilities of thepywidevinelibrary and an L3 Content Decryption Module (CDM).frompywidevine.cdmimportCdmfrompywidevine.psshimportPSSHfrompywidevine.deviceimportDevice...device=Device.load("l3cdm.wvd")cdm=Cdm.from_device(device)# Get streams of the episode/moviestreams=awaitclient.get_streams("GRVDQ1G4R")# Get manifest of the format you prefermanifest=awaitclient.get_manifest(streams.hardsubs[0].url)# print(manifest)# Get Widevine PSSH from manifestpssh=PSSH(manifest.content_protection.widevine.pssh)session_id=cdm.open()challenge=cdm.get_license_challenge(session_id,pssh)license=awaitclient.get_license(streams.media_id,challenge=challenge,token=streams.token)cdm.parse_license(session_id,license)forkeyincdm.get_keys(session_id,"CONTENT"):print(f"{key.kid.hex}:{key.key.hex()}")cdm.close(session_id)Output:056ec1ca849e350181753cacc9bd404b:2307a188ecd8de3859b71b30791f171d[!TIP]
Decryption keys are universally applicable to both video and audio streams, maintaining consistency across all available formats.TODO List 📄Add support for token loginAdd support for visitor view (authless)Add support for MusicAdd missing documentationAdd missing API methodsAdd support for PlayReady DRMStay informed about the latest developments by joining ourTelegram Channel.
Package: cruntils
IntroductionA collection of utilities. Mainly for me. Others may find them useful.Updating packageTo update the package, take the following steps:Delete the/distfolderDelete the/cruntils.egg-infofolderUpdate versions inpyproject.tomlandsetup.pyBuild new package withpy -m buildUpload to PyPi withpy -m twine upload dist/*Package CreationOkay, this guide was also really useful:https://packaging.python.org/en/latest/tutorials/packaging-projects/Used the following guide to create the package:https://python-packaging.readthedocs.io/en/latest/minimal.html
Package: cruscoplanets
cruscoplanetsGraphic editor for Morpurgo's dialectic astrologySummaryCruscoplanets is a tool for elaborating astrological charts according to the perspective of Morpurgo's astrological school. Consequently, according to Morpurgo's positions, it is a minimal software, which is able to create exclusively birth and transit charts, and does not consider asteroids or astrological points. On the other hand, in addition to the common ten astrological planets, it considers in also Eris' ephemeris, in accordance with the recent, and more and more confirmed, hypothesis that Eris corresponds to Morpugo's X planet. If in the future also Y is individuated, it will be added in the software as well.UsageThough cruscoplanets has been fundamentally structured as a package, it provides also some injection points. Once installed the package in your environment, you can type on your terminalcruscoplanets --helpfor displaying a list of operations that you can do in command line. In particular, you can:create a birth chart in svg, png or jpeg format;create a transit chart in svg, png or jpeg format;browse the locations database (and getting the location's id, which is necessary for the operations above)get and set a default locationFor creating an astrological chart with cruscoplanets you must now introduce in input the relative date(s) and time(s) in the cruscoplanets format. Please refer to the documentation in order to see how it works.
Package: cruscoplanets-gui
cruscoplanets GUIGraphic interface for thecruscoplanetspackageSummaryCruscoplanets is a tool for elaborating astrological charts according to the perspective of Morpurgo's astrological school. This package provides a GUI interface for it. To use it you have just to
install this pip package and launchcruscoplanets_guion your terminal, if you are on Linux; if you use Windows, you should have an executable file ready after you have installed the package.
Package: cruscopoetry.plugins.cruscoarud
Welcome to CruscoArud, a plugin of CruscoPoetry that allows to parse lines written in one of the sixteen Classical Arabic metres (theʿArūḍmetres) and store the result of this parsing in the poem’s
JSON file.RequirementsSince the base version of Cruscopetry doesn’t provide a specific syllabification algorithm, cruscoarud can work only with customized packages. In particular, the customized classes inheriting fromcruscopoetry.abstracts.AbstractSyllableneed to include the attribute (or property)morae, whose value must be a positive integer indicating the syllabic quantity (for example, 1 for short syllables, 2 for long, 3 for extra-long ones in the Arabic language). Moreover, in the metadata section of the text the keycruscoarud_metre, to whom an appropriate integer value must correspond (see the documentation for further details.
Package: crush
crushcrush is a library to control placement in a hierarchyHome page :http://http://libcrush.org/main/python-crushDocumentation :http://crush.readthedocs.org/PyPi :https://pypi.python.org/pypi/crushGNU/Linux Installationpip install crushOther InstallationWhen using pip versions lower than 8.1 or other operating systems,
compilation is necessary and packages must be installed first.apt-get install -y gcc g++ python-pip python-all-dev libpython3-all-dev cmake libboost-all-dev libatomic-ops-devdnf / yum / zypper install -y gcc gcc-c++ python-pip python-devel python3-devel cmake make boost-devel libatomic_ops-develpip install crushHackingGet the code:git clone http://libcrush.org/main/python-crush.git
cd python-crushSet up the development environment:deactivate || true ; source bootstrapRun the tests:deactivate || true ; bash run-tests.shSync the libcrush submodule:git submodule update --remote libcrushRun a single test:tox -e py27 -- -s -k test_one tests/test_crush.pyCheck the documentation:python setup.py build_sphinx
firefox build/html/index.htmlUpdate requirementsrm -fr virtualenv
virtualenv virtualenv
source virtualenv/bin/activate
# update some module in requirements.txt
tox
# if that works
pip install -r requirements.txt
pip freeze -r requirements.txt > new-requirements.txt
.tox/py3/bin/pip freeze -r requirements-dev.txt > new-requirements-dev.txt
diff <(.tox/py27/bin/pip freeze -r requirements-dev.txt) new-requirements-dev.txt
# all lines after the first “were added by pip freeze” are indirect dependencies
remove pkg-resources==0.0.0https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1635463Release managementPrepare a new versiongit checkout master ; git pullversion=1.0.0 ; perl -pi -e “s/^version.*/version = $version/” setup.cfg ; for i in 1 2 ; do python setup.py sdist ; amend=$(git log -1 –oneline | grep –quiet “version $version” && echo –amend) ; git commit $amend -m “version $version” ChangeLog setup.cfg ; git tag -a -f -m “version $version” $version ; donePublish a new versiondocker build –tag manylinux manylinuxdocker run –rm -v $(pwd):/io manylinux /io/manylinux/build-wheels.sh
OR docker run –rm -v $(pwd):/io manylinux env PYBINS=/opt/python/cp27-cp27mu/bin /io/manylinux/build-wheels.shsudo chown -R $(id -u) wheelhouse/twine upload –sign wheelhouse/crushrm -fr distpython setup.py sdisttwine upload –sign dist/*.tar.gzgit push ; git push –tagspypi maintenancetrim old versions athttps://pypi.python.org/pypi/crush
Package: crushfs
crushfsPython 3 client for CrushFS (sync and async)Async usage (depends on aiohttp)importasyncioimportcrushfsWAREHOUSE='mywarehouse'SIGNER='me'SECRET='letmein'PATH='/apath/afile'asyncdefasync_test():client=crushfs.AsyncClient(warehouse=WAREHOUSE,signer=SIGNER,secret=SECRET)response=awaitclient.download_object(path=PATH)print(len(response.data))asyncio.run(async_test())Sync usage (depends on requests)importcrushfsWAREHOUSE='mywarehouse'SIGNER='me'SECRET='letmein'PATH='/apath/afile'defsync_test():client=crushfs.SyncClient(warehouse=WAREHOUSE,signer=SIGNER,secret=SECRET)response=client.download_object(path=PATH)print(len(response.data))sync_test()
Package: crust
Crust: Framework for Tastypie API ClientsCrust is a BSD licensed framework for creating clients for a Tastypie API.ResourcesBug TrackerCodeContributeCheck for open issues or open a new issue to start a discussion around a feature
idea or a bug.Forkthe repositoryon GitHub and create a branch off of the master branch
to make your changes too.Write a test which shows that the bug was fixed or that the feature works as expected.Send a pull request and bug the maintainer until it gets merged and published.
Package: crust-interface-patara
crust-file-uploaderhttps://crust.network/https://apps.crust.network/https://wiki.crust.network/enhttps://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc-shadow.crust.network%2F#/explorerThis is a simple tool to pin your files sing Crust Network or Crust Shadow.SetupInstallation:pip3installcrust-interface-pataraFeaturesThe module is divided intoMainnetandShadowMainnetprovides Crust interaction functionality to check user balance, calculate file storage price, placing
file storage order, add tokens to renewal pool and checking replicas count.importtimefromcrustinterfaceimportMainnetseed="seed"mainnet=Mainnet(seed=seed)# get any IPFS CID and sizecid,size="QmbJtyu82TQSHU52AzRMXBENZGQKYqPsmao9dPuTeorPui",18# <any way to get an IPFS CID and size. One may use ipfshttpclient2 from IPFS-Toolkit># Check balancebalance=mainnet.get_balance()print(balance)# Check price in Main net. Price in pCRUsprice=mainnet.get_appx_store_price(int(size))print(price)# Store file in Mainnet for CRUsfile_stored=mainnet.store_file(cid,size)print(file_stored)# Add renewal poolfile_prepaid=mainnet.add_renewal_pool_balance(cid,price*2)print(file_prepaid)# Get replicastime.sleep(10)replicas=mainnet.get_replicas(cid)print(replicas)Shadowallows you to performXstorageextrinsic in Crust Shadow network.fromcrustinterfaceimportShadowseed="seed"shadow=Shadow(seed=seed)# get any IPFS CID and sizecid,size="QmbJtyu82TQSHU52AzRMXBENZGQKYqPsmao9dPuTeorPui",18# <any way to get an IPFS CID and size. One may use ipfshttpclient2 from IPFS-Toolkit>print(cid,size)# Check balancebalance=shadow.get_balance()print(balance)# Store file in Shadow for CSMsfile_stored=shadow.store_file(cid,size)print(file_stored)
Package: crustypy-instance
CrustyPy InstanceGenerated with CrustyPy.Read the DocsInstallationPyPIcrustypy-instanceis available on PyPI:# With pippipinstallcrustypy-instance# With Poetrypoetryaddcrustypy-instanceGitHubYou can also install the latest version of the code directly from GitHub:# With pippipinstallgit+git://github.com/MicaelJarniac/crustypy-instance# With Poetrypoetryaddgit+git://github.com/MicaelJarniac/crustypy-instanceUsageFor more examples, see thefull documentation.fromcrustypy_instanceimportcrustypy_instanceContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.More details can be found inCONTRIBUTING.Contributors ✨LicenseMITThis project was created with theMicaelJarniac/crustypytemplate.
Package: crutil
This is a random library I made with random garbage I made that occasionally can help with programming.
It’s just the must random code crammed into one poopy doopy thing maintained by a dumbo octopus, so use this at your own risk.Docs…?crutil.recursion() ; A context manager that lets you temporarily set your recursion depth. Use:with crutil.recursion(<some recursion limit here>):
    <do something here>Your recursion limit will be reset after.crutil.suppress() ; A suppression context manager, use it with the “with” keyword like crutil.recursion(). This will
temporarily suppress stdout and stderr, preventing anything from being printed to console, even with sys.stderr.write.
This will, however, not silence error messages, although that’s probably a good thing.crutil.pubsub() ; Class that lets you use a publish subscribe model. You can create an instance, then publish/subscribe to that instance.:ps = crutil.pubsub()

    def foo(bar):
        return bar + 1

    sid = ps.subscribe("baz", foo)

    print(ps.publish("baz", [7]))

    ps.unsubscribe(sid)This will print [8]. There is also crutil.pubsub().clear(), which clears all subscribers and crutil.pubsub().view(), which will pretty print the cache.crutil.find_args(func) ; Tries,tries, to return a list of all arguments of function.crutil.blob(in, out) ; Takes a binary input file and converts it into a python script so that when said script is imported and the .unblob(out) method is run, it unblobs it’s data to out.
Can be used for easy pyinstallering.crutil.test() ; idfk figure it outcrutil.gc() ; Nuclear bomb every variable in namespace, absolutely the most performant GC out there.crutil.cfor() ; C-style for loopscrutil.lazy_import() ; Lazy import, you can do it in bulk with lists, and use semicolons asimport asand slashes aretry: import except; importFor example,"numpy;np"imports numpy as np, andujson;json/jsontries to import ujson as json, and if ujson doesn’t exist on your python installation, it imports json instead.crutil.nh_cache() ; FIFO cache that supports non-hashable objects and can deepcopy return values if needed.crutil.lru_cache() ; Extension of functools.lru_cache that supports deepcopying results withcopyarg
Package: cr-wavelets
IntroductionCR-Waveletsis a port ofPyWaveletsforGoogle JAX.
It enables running Wavelet decomposition and reconstruction
algorithms on GPU and TPU hardware.For detailed documentation and usage, please visitonline docs.For theoretical background, please check online notes atTopics in Signal Processingand references therein (still under development).CR-Waveletsis part ofCR-Suite.Related libraries:CR-NimbleCR-SparseSupported PlatformsCR-Waveletscan run on any platform supported byJAX.
We have testedCR-Waveletson Mac and Linux platforms and Google Colaboratory.The latest code in the library has been tested against JAX 0.4.JAXis not officially supported on Windows platforms at the moment.
Although, it is possible to build it from source using Windows Subsystems for Linux.
Alternatively, you can check out the community supported Windows build for JAX
available fromhttps://github.com/cloudhan/jax-windows-builder.
This seems to work well and all the unit tests in the library have passed
on Windows also.InstallationInstallation from PyPI:python-mpipinstallcr-waveletsDirectly from our GITHUB repository:python-mpipinstallgit+https://github.com/carnotresearch/cr-wavelets.gitExamples/UsageSee theexamples galleryin the documentation.Contribution Guidelines/Code of ConductContribution GuidelinesCode of ConductDocumentation|Code|Issues|Discussions|