Saravanan666/pypi-org huggingface dataset:
Package: colab-host
ColabHostHost any python application in colab or kaggle notebook environment.
Inspired fromAbhishek Thakur,
and his work oncolab codeto host VScode IDE in any notebook environment using pyngrok.Free software: MIT licenseDocumentation:https://colab-host.readthedocs.io.FeaturesSince colabcode already hosts VScode IDE this package extends the idea to host following IDE and python applications:Jupyter NotebookJupyter LabFlask and Gunicron applicationsFastAPI and Uvicorn applicationsCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-09-10)First release on PyPI.
Package: colabjupyter
ColabCodeInstallationInstallation is easy!$ pip install colabcodeRun code server on Google Colab or Kaggle NotebooksGetting StartedColabCode also has a command-line script. So you can just runcolabcodefrom command line.colabcode -hwill give the following:usage: colabcode [-h] --port PORT [--password PASSWORD] [--mount_drive]

ColabCode: Run VS Code On Colab / Kaggle Notebooks

required arguments:
  --port PORT          the port you want to run code-server on

optional arguments:
  --password PASSWORD  password to protect your code-server from unauthorized access
  --mount_drive        if you use --mount_drive, your google drive will be mountedElse, you can do the following:# import colabcode$fromcolabcodeimportColabCode# run colabcode with by deafult options.$ColabCode()# ColabCode has the following arguments:# - port: the port you want to run code-server on, default 10000# - password: password to protect your code server from being accessed by someone else. Note that there is no password by default!# - mount_drive: True or False to mount your Google Drive$ColabCode(port=10000,password="abhishek",mount_drive=True)How to use it?Colab starter notebook:ColabCodecomes pre-installed with some VS Code extensions.See an example in youtube videoLicenseMIT
Package: colab-load
Colab LoadWhat is this?Library to download .ipynb from google colabQuick GuideOne url:from colab_load.load import StartLoad

s = StartLoad(logs=True)
s.load_file_s("https://colab.research.google.com/drive/1QD1TM2TroOEqqtTURpk5sVOmGLQeREv", save_dir="file")Lots of url:from colab_load.load import StartLoad

urls=["https://colab.research.google.com/drive/1uQ3QH3khRGYcQ8kU3OMyG1xRF6MB70xA?usp=sharing", "https://colab.research.google.com/drive/1bKxzUeOalOelP7HQ3KGBsF35j7CC2ZFh?usp=sharing"]
s = StartLoad(logs=True)
s.load_file_a(urls, save_dir="file", count=2)
Package: colab-notebook-utils
Colab-UtilsUsefull tools for dealing with colab notebooksInstallationGo in a colab notebook and run the following cell:!pipinstallcolab_notebook_utilsYou will need to mount your drive in the first place.fromgoogle.colabimportdrivedrive.mount('/content/drive')Set workspaceYou can get the workspace path that Colab use (which is different that the location of your notebook, it should be /content/)fromcolab_notebook_utils.workspaceimportget_workspace_pathget_workspace_path()You can automatically set this workspace as the location of your notebook, which is useful when you want to save files in the workspace, or when you want to use a relative path to a file in the workspace.fromcolab_notebook_utils.workspaceimportset_notebook_location_as_workspaceset_notebook_location_as_workspace()
Package: colabo.flow.audit
Install# the latestpipinstallcolabo.flow.audit# upgrade AFTER installingpipinstall--upgradecolabo.flow.audit# a speciffic onepipinstallcolabo.flow.audit==0.0.4Use# importfromcolabo.flow.auditimportaudit_pb2fromcolabo.flow.auditimportColaboFlowAudit# create an ColaboFlowAudit objectcolaboFlowAudit=ColaboFlowAudit()# create an audit objectcfAuditRequest1=audit_pb2.SubmitAuditRequest(bpmn_type='activity',bpmn_subtype='task',bpmn_subsubtype='sub-task',flowId='searchForSounds',# ...)# send the audit object to the audit serviceresult1=colaboFlowAudit.audit_submit(cfAuditRequest1)# print the respons from the audit serviceprint("result1 =%s"%(result1))More DetailsGithub Colabo repositoryThis package inside the Colabo repoDEVELOPMENT.mdRelevant Colabo PuzzlesPythonColaboFlow Audit ServicesBackendFrontendIsomorphic
Package: colabo.flow.go
Install# the latestpipinstallcolabo.flow.go# upgrade AFTER installingpipinstall--upgradecolabo.flow.go# a speciffic onepipinstallcolabo.flow.go==0.0.4Use# importfromcolabo.flow.goimportgo_pb2fromcolabo.flow.goimportColaboFlowGo# create an ColaboFlowGo objectcolaboFlowGo=ColaboFlowGo()createanexecuterequestobjectrequest=go_pb2.ActionExecuteRequest(flowId='search-sounds',name='mediator',flowInstanceId='fa23',dataIn='hello from client',params='quick')# send the go object to the go serviceresponse=colaboFlowGo.executeActionSync(request)# print the respons from the go serviceprint("response =%s"%(response))More DetailsGithub Colabo repositoryThis package inside the Colabo repoDEVELOPMENT.mdRelevant Colabo PuzzlesPythonColaboFlow Go ServicesBackendFrontendIsomorphic
Package: colabo-flow.s-go
RunHostspython3create_host.py# send a test message with the RabbitMQ CLI# https://www.rabbitmq.com/management-cli.htmlrabbitmqadminpublishexchange=amq.defaultrouting_key=testpayload="Hello, world from RabbitMQ CLI"# delete the queue `colabo.flow.host.node`rabbitmqadmindeletequeuename=colabo.flow.host.node# delete all the messages in the `colabo.flow.host.node` queuerabbitmqadminpurgequeuename=colabo.flow.host.node
rabbitmqadminpurgequeuename=colabo.flow.host.terra-python
rabbitmqadminpurgequeuename=colabo.flow.host.heartbeatcd/Users/mprinc/data/development/colabo-zontik/colabo/src/services/puzzles/flow/go

python3create_host_terra.pyClientscd/Users/mprinc/data/development/colabo-zontik/colabo/src/services/puzzles/flow/go# sending a task request by python clientpython3create_client_terra.pyMessages# delete all the messages in the `colabo.flow.host.node` queuerabbitmqadminpurgequeuename=colabo.flow.host.nodeHeartbeat# heartbeat for discovering python test host with a single task: `com.welcometerra.video.ffmpeg-multiple`rabbitmqadminpublishexchange=amq.defaultrouting_key=colabo.flow.host.heartbeatpayload='{"id": "ColaboFlow-msg:371f4180-5c92-11ed-bc66-96ba02116486", "type": "HEARTBEAT", "requestId": "ColaboFlow-request:371f42f2-5c92-11ed-bc66-96ba02116486", "sender": "host-python-1", "replyTo": null, "proxies": [], "msgReplyChainIds": [], "msg": ["node host with tasks: ['com.welcometerra.video.ffmpeg-multiple']"], "extension": {"id": 2, "queueHost": "colabo.flow.host.python", "language": "PYTHON", "taskIds": ["com.welcometerra.video.ffmpeg-multiple"]}}'Here is the full message:{"id":"ColaboFlow-msg:371f4180-5c92-11ed-bc66-96ba02116486","type":"HEARTBEAT","requestId":"ColaboFlow-request:371f42f2-5c92-11ed-bc66-96ba02116486","sender":"host-python-1","replyTo":null,"proxies":[],"msgReplyChainIds":[],"msg":["node host with tasks: ['com.welcometerra.video.ffmpeg - multiple']"],"extension":{"id":2,"queueHost":"colabo.flow.host.python","language":"PYTHON","taskIds":["com.welcometerra.video.ffmpeg-multiple"]}}process_video{"userId":16,"videoId":49,"videoFileLocalPath":"/var/folders/f5/s2lwsbwx34728zbv9vd91f4w0000gn/T/tmpzz4ykin9.mp4","first_name":"Sasha","email":"mprinc@gmail.com","username":"mprinc","task_context":{"processId":1,"userId":16,"userName":"mprinc","videoId":49,"videoName":"ALWAYS BE SILENT IN FIVE SITUATIONS _ APJ Abdul Kalam Quotes _ Life Quotes - Quotation & Motivation.mp4","name":"process_video","id":1},"videoToAudio":false}
Package: colabohash
ColaboHashTemporarily abuse Google Colab for fun, hash cracking and and definitely NOT profit! Run hashcat commands in Google's Colaboratory runtime with support of allocated GPU resourcesRequires:Chrome browser 84+ version installedGetting StartedYou can get started usingcolabohashby installing it through pip.pip install colabohashUsageSee theexamplesfolder for usage examples.RoadmapAutomatic hashcat command invocation in ColabAdd discord webhook callback optionDecouple callbacks from jupyter notebookAdd support for other driversAdd more examples + enhance documentationAdd email callback optionEnable progress status on demandContributingAny PRs are welcome!VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.AuthorsAntreas Pogiatzis-Initial workSee also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: colab-preamble
COLAB PREAMPLEPrepare google colaboratory by one line of commandInstallation# from pypi$pipinstallcolab-preamble# alternatively, from github$gitclonehttps://github.com/kota7/colab-preamble--depth1$pipinstall-U./colab-preampleUsageimportcolab_preamblecolab_preample_run(google_cloud_project="<project-id>",mount_drive=True)# If no need to access google cloud services, no need to provide set google_cloud_project=None# If no need to mount google drive, set mount_drive=FalseEffectWhengoogle_cloud_projectis given,Set the default project IDRungcloud config set ...SetGOOGLE_CLOUD_PROJECTenv variableOpen the authentication promptIntroduce bigquery magic commandbqWhenmount_driveis true,Google drive is mounted at '/content/drive'
Package: colab-repoclone
colab-repocloneOutlineThis Python package handles Git integration inGoogle Colab. Using GitHub credentials established as either environment variables (via thecolab-envpackage) or directly by standard input, this package will clone a specified repository into your local Google Colab environment. It then allows for modification of the files inside and ulimately provides push capability back to GitHub directly from Colab.As of v0.2.0, this package also allows one to:
- Create a local directory from scratch and initialize it as a GitHub repository.
- Create new branches and checkout existing branches
- Perform a hard reset back to a previous commitUsageTo load GitHub functionality for pushing and pulling to private repositories usingcolab-repocloneyou should include the following code at the top of your Colab notebook:!pip install colab-repoclone -qU
import colab_repocloneThen, to create a copy of a desired repository, run the following:your_repo_name = colab_repoclone.local_repository(your_repo_url)To initialize a new repository, run:your_repo_name = colab_repoclone.local_repository(your_repo_url, clone=False)local_repositoryalso includes some optional keywords for specifying where to look for GitHub credentials and whether to pull a single branch of a repository.Now you can run any of the methods in theLocalRepoclass as desired by referencingyour_repo_name, such asyour_repo_name.push().Take it for a test-driveSimply open upcolab-git/colab_repoclone_testbed.ipynbin Google Colab and try it out!ContributorsJordan Lueck (jordan.lueck@apolitical.co)(with thanks to Paddy Alton (paddy.alton@apolitical.co) for assistance and review)
Package: colabrsync
colabrsyncRun rsync periodically in the background on Google Colab.Usage!pipinstallcolabrsyncfromgoogle.colabimportdrivedrive.mount('/content/drive')!mkdir-p/content/outputs!mkdir-p/content/drive/MyDrive/outputsfromcolabrsyncimportRsyncMirrorrsm=RsyncMirror('/content/outputs/','/content/drive/MyDrive/outputs/')!diff-ur/content/outputs/content/drive/MyDrive/outputs!touch/content/outputs/newfile.txt!diff-ur/content/outputs/content/drive/MyDrive/outputs!sleep60!diff-ur/content/outputs/content/drive/MyDrive/outputsdelrsm!ls-l/content/outputs/content/drive/MyDrive/outputsLicenseMIT License, See LICENSE file.AuthorSusumu OTA
Package: colabshell
Access Shell on Colab / Kaggle Notebook serverInstallationInstallation is easy!$ pip install git+https://github.com/sandyz1000/colabshell.gitRun ttyd server on Google Colab or Kaggle NotebooksGetting StartedColabShell also has a command-line script. So you can just runcolabshellfrom command line.colabshell -hwill give the following:usage: colabshell [-h] PORT [--password PASSWORD] [--mount_drive] [--settings_ini kafka-settings.ini]

ColabShell: Run TTYD server On Colab / Kaggle Notebooks to access the GPU machine from SHELL

required arguments:
  port PORT          the port you want to run ttyd server on

optional arguments: 
  --credential CREDENTIAL  username and password to protect your shell from unauthorized access, format username:password
  --mount_drive        if you use --mount_drive, your google drive will be mounted
  --settings_ini       Settings.ini if you want to log to kafka and listen from remote workstationYour typical settings.ini file will look like this[DEFAULT]
timeout = 2000000
log_level = DEBUG
log_dir = logs

; General log configuration
[LOG_FORMATTER]
to_json=True
format=%(asctime)s:%(levelname)s:%(name)s:%(message)s
; # format='%(relativeCreated)6.1f %(threadName)12s: %(levelname).1s %(module)8.8s:%(lineno)-4d %(message)s',
log_max_bytes=1024 * 1024 * 10
log_backups=5
relay_stdout=True

; # Kafka Configuration
[KAFKA]
bootstrap_servers = localhost:9094
username =
password =
topics = default,decentlog
timeout=${DEFAULT:timeout}
group_id=default-consumer
sasl_plain_username=
sasl_plain_password=
kafka_retry=5
sasl_mechanism=
security_protocol=PLAINTEXTStarting ttyd server from SHELLcolabshell10001interactive--credential=user:password--settings_ini=kafka-settings.iniStarting ttyd server from Notebookfrom colabshell import ColabShell
shell = ColabShell(
  port=10001, 
  username='colabshell', password='password', 
  mount_drive=/home/gdrive, 
  settings_ini='kafka-settings.ini'
)
shell.run()For more info about the shell check this link:https://github.com/tsl0922/ttyd
Package: colab-sshfs
colab-sshfssshfs mounts for Google ColaboratoryGoogle Colaboratoryis a free, fully-hosted fork off of a predecessor ofJupyteravailable with a Google account.Whilemounting Google Driveis straightforward, other storage spaces are not.This package makes mountingsshfs-accessible remote spaces straightforward.NOTE: Password-based authentication is not supported.InstallationExecute the following in a cell:!pip install colab_sshfsUsagefrom colab_sshfs import colab_sshfs
colab_sshfs.mount(remote = '<user>@<host>:[remote path]')By default, the local path mounted is/content/sshfs.The mount function returns aCompletedProcessinstance.Review the docstring for full parameters:help(colab_sshfs.mount).
Package: colab-to-PETA
ColabColab are the tools for curating colab gene test data to bgi-PETA.Installation$ cd colab
$ python setup.py installUsage$ colab -h
usage: colab [-h] -d ROOT_PATH [-s DATABASE] [-u]

tools for curating colab gene test data to bgi-PETA

optional arguments:
  -h, --help            show this help message and exit
  -d ROOT_PATH, --root_path ROOT_PATH
                        root path for the product files of a colab
  -s DATABASE, --database DATABASE
                        database login path
  -u, --update          update for existing samples, skip if False
Package: colabtunnel
colab-tunnelAccess Google Colab directly from your local VS Code editor usingremote tunnels.https://user-images.githubusercontent.com/8587189/232783372-8f2a5f83-1e57-42f0-8740-4b7e5901b561.mp4UsageYou can make a copy of thisnotebookto get started.On Google Colab, first install the library and the run the code.!pipinstallcolabtunnelfromcolabtunnelimportcolabtunnelcolabtunnel()After running the code, copy the given code, click the GitHub link and paste the code.Paste your unique code on the github link and press "Continue".Open your local VSCode Editor. Install theRemote Tunnelsextension if you haven't already installed. Then, open the command prompt and selectRemote-Tunnels: Connect to TunnelYou will be shown a list of tunnels. Select the first tunnel name that hasonlinebeside it.You will be connected to the virtual machine and can access the folders. Open the/colabfolder and store your code there for persistence on Google Drive. The workflow is similar to the Remote SSH plugin
Package: colabtweak
colabtweakTweaks for Google Colab.InstallationThecolabtweakgit repois available asPyPi packagepip install colabtweakIn Colab use this! pip install colabtweakCommandsCheck syntax:flake8 --ignore=F401Remove.pycfiles:find . -type f -name "*.pyc" | xargs rmRemove__pycache__folders:find . -type d -name "__pycache__" | xargs rm -rfUpload to PyPi with twine:python setup.py sdist && twine upload -r pypi dist/*SupportPleaseopen an issuefor support.ContributingPlease contribute usingGithub Flow. Create a branch, add commits, andopen a pull request.
Package: colab-xterm
colab-xtermColab-xterm allows you to open a terminal in a cell.UsageInstall package and load the extension!pip install colab-xterm
%load_ext colabxtermOpen a terminal%xtermEnjoy!Try it out in the demo notebook.FeaturesTTY supportDoes not block your kernelOptions%xterm height=1000 port=10001optiondescriptionheightThe height of the terminal panelportThe server portScreenshots
Package: colander_jsonschema
Convert colander schema to jsonschema compatible dictionary.Inspired by “Audrey“‘scolanderutil.pyInstallfrom PyPI:pip install colander_jsonschemafrom source:python setup.py installRunningIn your source:import json
from colander_jsonschema import convert

converted = convert(YourColanderSchema())
with open('some/path.json') as fp:
    json.dump(converted, fp)TODO: create useful interfacesPlanned Featuresauto-discover schemassetuptools integrationChange History0.2 - 2014-10-06python3 support0.1 - 2014-10-04Initial release.
Package: colanderpy
colanderpyA simple version of the Sieve of Eratosthenes.Developed during "Python for Scientific Computing" course at CINECAInstall from sourceClone repositorygitclonehttps://gitlab.hpc.cineca.it/cineca-hpyc/colanderpy.gitand install$cdpycolander
$pythonsetup.pyinstallInstall from Python Package Index (PyPI)pipinstallpycolanderUsagePrime number generator$sieve-n422357111317192329313741$sieve-h
usage:sieve[-h][-nLIMIT]TheSieveofEratosthenes.

Returnsthelistofprimenumbersuptoamaximuminteger.

optionalarguments:-h,--helpshowthishelpmessageandexit-nLIMIT,--limitLIMITmaximumintegeruptowhichtheprimenumbersaresearched.(default100)Prime-counting function$prime-counting-n4213$prime-counting-h
usage:prime-counting[-h][-nLIMIT]Prime-countingfunctionCountsthenumberofprimenumberslessthanorequaltoanintegernumber.

optionalarguments:-h,--helpshowthishelpmessageandexit-nLIMIT,--limitLIMITmaximumintegeruptowhichtheprimenumbersarecounted.(default100)
Package: colander-tools
This package is a set of extensions tocolanderespecially useful when
implementing REST APIs.Strict typesThecolander_tools.strictmodule includes a series of strict types. Those types
follow thePostel’s law:
they are strict on serialize and loose on deserialize.Included are:IntegerFloatBooleanStringMappingByte typesThecolander_tools.bytesmodule includes types serializing / deserializing encoded binary data.Included are:Base16BytesBase32BytesBase64BytesURLSafeBase64BytesOpen mappingsThecolander_tools.mappingmodule includes twoMappingsubclasses that allow
and validate arbitrary keys in addition to the values.Included are:OpenMapping: a mapping that allows you to specify the type of keys and the type of values
separately;SortedOpenMapping: an extension ofOpenMappingthat conserve the order of keys by
deserializing tocollections.OrderedDict.Network addresses typesThecolander_tools.netaddrmodule includes a series of types that serializes and
deserializes network addresses (IP addresses, MAC addresses, etc.), powered by thenetaddrpackage.Null typesThecolander_tools.nullmodule includes a wrapper type that allowsNoneas a value.Serializable classesThecolander_tools.serializablemodule includes tools to bind Python classes
to their schema.Schema inheritance / sub-schemasThecolander_tools.subschemamodule includes tools to build schemas of things
that can have different types / classes.Timezone typeThecolander_tools.timezonemodule includes a type for serializing and
deserializing timezone identifiers likeEurope/AmsterdamorAsia/Hong_Kong,
powered by thepytzpackage.
Package: cola-plum-dispatch
Plum: Multiple Dispatch in PythonEverybody likes multiple dispatch, just like everybody likes plums.The design philosophy of Plum is to provide an implementation of multiple dispatch that is Pythonic, yet close to howJuliadoes it.See here for a comparison between Plum,multipledispatch, andmultimethod.Note:Plum 2 is now powered byBeartype!
If you notice any issues with the new release, please open an issue.InstallationPlum requires Python 3.8 or higher.pipinstallcola-plum-dispatchDocumentationSeehere.What's This?Plum brings your type annotations to life:fromnumbersimportNumberfromplumimportdispatch@dispatchdeff(x:str):return"This is a string!"@dispatchdeff(x:int):return"This is an integer!"@dispatchdeff(x:Number):return"This is a general number, but I don't know which type.">>>f("1")'This is a string!'>>>f(1)'This is an integer!'>>>f(1.0)'This is a number, but I don'tknowwhichtype.'>>>f(object())NotFoundLookupError:Forfunction`f`,`(<objectobjectat0x7fb528458190>,)`couldnotberesolved.This also works for multiple arguments, enabling some neat design patterns:fromnumbersimportNumber,Real,Rationalfromplumimportdispatch@dispatchdefmultiply(x:Number,y:Number):return"Performing fallback implementation of multiplication..."@dispatchdefmultiply(x:Real,y:Real):return"Performing specialised implementation for reals..."@dispatchdefmultiply(x:Rational,y:Rational):return"Performing specialised implementation for rationals...">>>multiply(1,1)'Performing specialised implementation for rationals...'>>>multiply(1.0,1.0)'Performing specialised implementation for reals...'>>>multiply(1j,1j)'Performing fallback implementation of multiplication...'>>>multiply(1,1.0)# For mixed types, it automatically chooses the right optimisation!'Performing specialised implementation for reals...'
Package: colav
colavcolav(Conformational Landscape Visualization) provides tools for representing protein structures and mapping conformational landscapes.colavsupports calculations for dihedral angles, pairwise distances, and strain. It is built onbiopandas,NumPy, andSciPy. The methods analyze.pdbfiles, either one-by-one or all together. The three methods currently implemented are:InstallationYou can installcolavusingpip:pip install colavDocumentationDocumentation can be foundhere.ExamplesExamples of how to use the software can be found inscripts/.SupportIf you are having issues, please let us know. You can contact ushere.LicenseThis code is provided under theMIT license.ReferenceIf you usecolavin your work, please use the following citation:Saeed, A.A., Klureza, M.A., and Hekstra, D.R. (Forthcoming!). Mapping protein conformational ensembles using crystallographic drug fragment screens.doi
Package: colcon-alias
An extension forcolcon-coreto create and modify command aliases.Aliases condense any number of colcon command invocations made up of a verb followed by all associated arguments down to another ‘alias’ verb. When invoking the alias verb, additional arguments can be appended to the original invocations.An example alias called ‘bat’, short for ‘build and test’:$ colcon alias bat --command build --command test
Registered command list for alias 'bat':
  build
  test
$ colcon bat --packages-select colcon-alias
Running command alias: colcon build --packages-select colcon-alias
...
Running command alias: colcon test --packages-select colcon-alias
...Another example, an alias for building specific packages:$ colcon alias buildpkg --command build --event-handler console_direct+ --packages-select
Registered command list for alias 'buildpkg':
  build --event-handler console_direct+ --packages-select
$ colcon buildpkg colcon-alias
Running command alias: colcon build --event-handler console_direct+ --packages-select colcon-alias
...A list of currently registered aliases can be found in the colcon help text:$ colcon --help
...

colcon aliases:
  bat                   build
                        test
  buildpkg              build --event-handler console_direct+ --packages-select

...Note: When usingcolcon-aliaswith thecolcon-mixinextension, the--mixincommand line argument is applied as an argument to--commandand not used as an actual mixin to thealiasverb.