Saravanan666/pypi-org huggingface dataset:
Package: coki
Coki: una herramienta de CLI para revisar precios de cocosRequisitosPython >= 3.9Cuenta en app.cocos.capital (la versión nueva, no la vieja)Instalación:Asegurarse que sea en una terminal con permisos de Administrador (así los scripts quedan en el PATH)$ pip install cokiGeneración de credencialesUna vez instalado, hay que generar el archivocoki_credentials.txt, que contiene el usuario y la clave de tu cuenta encriptadosLa encriptación es con una clave default estática (es decir, todos encriptan con la misma).Esto evita tener archivos guardados con la clave escrita (y encontrarlos directamente por su contenido), pero se puede hacer el proceso inverso para obtenerlaSe puede generar una clave de encriptación particular para mayor seguridad (todavía no está implementado)$ coki-gen-credentials <user> <password> [--key <encryption_key>]Con este script se generacoki_credentials.txt, para luego obtener la token de JWT que utiliza la api de cocos.Uso:$ coki --help
#    usage: coki.py [-h] [--currency CURRENCY] [--plazo PLAZO] ticker
#
#    coki es una CLI para consultar precios en cocos
#
#    positional arguments:
#    ticker                Ticker a consultar
#
#    optional arguments:
#    -h, --help            show this help message and exit
#    --currency CURRENCY, -C CURRENCY
#                            Moneda del ticker. Por default lo infiere de la última letra del Ticker (pero va a fallar en       
#                            casos como AMD)
#    --plazo PLAZO, -P PLAZO
#                            Plazo de la operación

$ coki GOGLD
         GOGLD - Cedear Google inc. - USD
         Last: 2.53 - High: 2.7 - Low: 2.5 - Volume: 5,203
╭────────────────┬─────────────────┬────┬────────────────┬───────────────╮
│   Cant. compra │   Precio compra │    │   Precio venta │   Cant. venta │
├────────────────┼─────────────────┼────┼────────────────┼───────────────┤
│            193 │            2.53 │    │           2.59 │           129 │
│            776 │            2.52 │    │           2.61 │          1221 │
│              8 │            2.48 │    │           2.63 │          1097 │
│             60 │            2.47 │    │           2.66 │            27 │
│              2 │            2.46 │    │           2.67 │           100 │
╰────────────────┴─────────────────┴────┴────────────────┴───────────────╯

$ coki AMD -C ARS
         AMD - Cedear Advanced Micro Devices, Inc. - ARS
         Last: 9,960 - High: 10,180 - Low: 9,901 - Volume: 8,699
╭────────────────┬─────────────────┬────┬────────────────┬───────────────╮
│   Cant. compra │   Precio compra │    │   Precio venta │   Cant. venta │
├────────────────┼─────────────────┼────┼────────────────┼───────────────┤
│              5 │            9960 │    │       10004.50 │          4000 │
│             29 │            9959 │    │       10005.00 │             4 │
│              1 │            9958 │    │       10008.00 │           850 │
│           2500 │            9957 │    │       10013.00 │          2500 │
│             12 │            9935 │    │       10100.00 │           137 │
╰────────────────┴─────────────────┴────┴────────────────┴───────────────╯
Package: coko
Sometimes you have a directory full of files you want to overwrite periodically.You may not want to edit those files directly but let other users edit a local copy of those files to copy them over original ones.Problem there is that local copies may have changed their owners or permissions to be edited so those metadata are carried over original directory overwriting it.This tools let you take an snapshot of your files metadata in a particular directory in order to restore those metadata after files have been restored.
More info in:https://github.com/dante-signal31/coko
Package: col2col
Copyright (c) 2020 Diego RodrÃ­guez and Gabriel CapeÃ¡nsPermission 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.Download-URL:https://github.com/gabriel23cg/col2col/archive/v0.2.2.tar.gzDescription: # Col2col python packagePlatform: UNKNOWN
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7
Package: colab
.. -*- coding: utf-8 -*-.. highlight:: rest.. _colab_software:=================================Colab, a Software for Communities=================================.. image:: https://travis-ci.org/colab/colab.svg?branch=master:target: https://travis-ci.org/colab/colab.. image:: https://coveralls.io/repos/colab/colab/badge.png?branch=master:target: https://coveralls.io/r/colab/colab?branch=masterWhat is Colab?==============Application that integrates existing systems to represent the contributions of the members through:* The amendments to the Wiki trac system.* Changes to the trac system code.* Discussions at the mailman list.* And other systems in the community.Features========* Developed by Interlegis Communities http://colab.interlegis.leg.br/* Written in Python http://python.org/* Built with Django Web Framework https://www.djangoproject.com/* Search engine with Solr https://lucene.apache.org/solr/Installation============First install the dependencies and than the project it self:.. code-block::pip install -e .Development environment-----------------------You must install vagrant to set up the development environment. With vagrant available you should run:.. code-block::vagrant upDuring the process you should choose the vagrant box that you want to use. In the end you should have a virtual machine with development environment set up.If you want to run locally, you must setup your settings file on /etc/colab:.. code-block::## Set to false in productionDEBUG = TrueTEMPLATE_DEBUG = TrueSECRET_KEY = 'secret'ALLOWED_HOSTS = ['localhost',]Running Colab=============To run Colab with development server you will have to:1- Log in virtual machine:.. code-block::vagrant ssh2- Use colab virtualenv:.. code-block::workon colab3- Run the development server:.. code-block::colab-admin runserver 0.0.0.0:8000Now you can access colab in your browser via http://localhost:8000**NOTE**: In case you want to keep the configuration file else where just set thedesired location in environment variable **COLAB_SETTINGS**.About test==========How to write a test--------------------Inside of each folder on /vagrant/colab/<folder> you can create a folder called"tests" and inside of it implements the code for test each file. Remember that you should create __init__.py file.How to run the tests--------------------Follow the steps below:1- Log in virtual machine:.. code-block::vagrant ssh2- Use colab virtualenv:.. code-block::workon colab3- Enter into colab source code directory:.. code-block::cd /vagrant4- Run tests with setup.py:.. code-block::python setup.py test
Package: colab2notebook
Use Jupyter Notebook with Google Colab CPU/GPU/TPU Backend.This package allows you to use Terminal access free of cost, the feature that is available to only Colab Pro users. This package will also allow you to use multiple notebooks thanks to tabs.If you like this project, dostarthe repo on GitHub.https://github.com/alihussainia/colab2notebookEnjoy and keep contributing!AliGitHub:https://www.github.com/alihussainiaLinkedin:https://wwww.linkedin.com/in/alihussainia
Package: colab2pdf
Directions: Copy→Paste→Run# Colab2PDF v1.0.0 by Drengskapur (github.com/drengskapur/colab2pdf) (License: GPL-3.0-or-later)# @title {display-mode:"form"}# @markdown ⬇️ Download PDFdefcolab2pdf():ENABLE=True# @param {type:"boolean"}ifENABLE:importos,datetime,json,pathlib,urllib,requests,werkzeug,nbformat,google,yaml,warningsNAME=pathlib.Path(werkzeug.utils.secure_filename(urllib.parse.unquote(requests.get(f"http://{os.environ['COLAB_JUPYTER_IP']}:{os.environ['KMP_TARGET_PORT']}/api/sessions").json()[0]["name"])))TEMP=pathlib.Path("/content/pdfs")/f"{datetime.datetime.now().strftime('%Y%m%d_%H%M%S')}_{NAME.stem}";TEMP.mkdir(parents=True,exist_ok=True)NB=[cellforcellinnbformat.reads(json.dumps(google.colab._message.blocking_request("get_ipynb",timeout_sec=30)["ipynb"]),as_version=4).cellsif"--Colab2PDF"notincell.source]warnings.filterwarnings('ignore',category=nbformat.validator.MissingIDFieldWarning)with(TEMP/f"{NAME.stem}.ipynb").open("w")asnb_copy:nbformat.write(nbformat.v4.new_notebook(cells=NBor[nbformat.v4.new_code_cell("#")]),nb_copy)ifnotpathlib.Path("/usr/local/bin/quarto").exists():!wget-q"https://quarto.org/download/latest/quarto-linux-amd64.deb"-P{TEMP}&&dpkg-i{TEMP}/quarto-linux-amd64.deb>/dev/null&&quartoinstalltinytex--update-path--quietwith(TEMP/"config.yml").open("w")asfile:yaml.dump({'include-in-header':[{"text":r"\usepackage{fvextra}\DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaksymbolleft={},showspaces=false,showtabs=false,breaklines,breakanywhere,commandchars=\\\{\}}"}],'include-before-body':[{"text":r"\DefineVerbatimEnvironment{verbatim}{Verbatim}{breaksymbolleft={},showspaces=false,showtabs=false,breaklines}"}]},file)!quartorender{TEMP}/{NAME.stem}.ipynb--metadata-file={TEMP}/config.yml--topdf-Mlatex-auto-install-Mmargin-top=1in-Mmargin-bottom=1in-Mmargin-left=1in-Mmargin-right=1in--quietgoogle.colab.files.download(str(TEMP/f"{NAME.stem}.pdf"))colab2pdf()
Package: colab-a11y-utils
colab-a11y-utilThis library provides the following functions in Google ColabNotification by sound at the time of cell executionOne beep sound when executedTwo beep sounds when normal completionTwo buzzer sounds when abnormal completionSound notification of progress bar by tqdmSimple audio output function that can be used instead of printSee the following example.For contributerUpdate PyPI$ nosetests -vs
$ pip install twine # if necessary
$ cat ~/.pypirc  # if necessary
[distutils]
index-servers = pypi

[pypi]
repository: https://upload.pypi.org/legacy/
username: YOUR_USERNAME
password: YOUR_PASSWORD
$ rm -rf colab_a11y_utils.egg-info dist # if necessary
$ python setup.py sdist
$ twine upload --repository pypi dist/*
$ pip --no-cache-dir install --upgrade colab-a11y-utilshttps://pypi.org/project/colab-a11y-utils/ContributingFork the repository on GithubCreate a named feature branch (like add_component_x)Write your changeWrite tests for your change (if applicable)Run the tests, ensuring they all passSubmit a Pull Request using GithubLicenseMIT
Package: colabcam
Author:KuoYuan Liwrap the javascript code to handle image from webcam in colab本package提供一系列在 colab 中操作webcam的方法在colab中使用之前請先進行安裝!pip install colabcamwebcam 拍照存檔(take a photo from webcam and save to 1.jpg)importcolabcamcolabcam.take_photo("1.jpg")動態顯示人臉框及文字(cv2只支援英數字)(demo with mediapipe face_detection)#Note:bbox(人臉框)是另外疊加顯示的，速度會有延遲是正常的importmediapipeasmpimportcolabcamimportnumpyasnpimportcv2mp_face_detection=mp.solutions.face_detectionface_detection=mp_face_detection.FaceDetection()# start streaming video from webcamcolabcam.video_stream()# label for videolabel_html='顯示中...(點擊畫面以結束顯示)'# initialze bounding box to emptybbox=''whileTrue:js_reply=colabcam.video_frame(label_html,bbox)ifnotjs_reply:break# convert JS response to OpenCV Imageimg=colabcam.js_to_image(js_reply["img"])results=face_detection.process(img)frame_height,frame_width=np.shape(img)[0:2]overlapImg=np.zeros([frame_height,frame_width,4],dtype=np.uint8)ifresults.detections:fordetectioninresults.detections:box=detection.location_data.relative_bounding_boxx,y,w,h=int(box.xmin*frame_width),int(box.ymin*frame_height),\int(box.width*frame_width),int(box.height*frame_height)ifw>0andh>0:overlapImg=cv2.rectangle(overlapImg,(x,y),(x+w,y+h),(255,0,0),2)cv2.putText(overlapImg,'text test',(x,y-20),cv2.FONT_HERSHEY_SIMPLEX,1,(255,0,0),2)bbox=colabcam.cvImg2bbox(overlapImg)LicenseMIT
Package: colab-cli
Experience better workflow with google colab, local jupyter notebooks and gitWelcome to colab-cli 👋You can now easily manage working with jupyter notebooks
and google colab from cli.Features🤠 Upload local jupyter notebook to gdrive from cli😮 Quick access to jupyter notebooks in gdrive from your cli🚀 Keeps jupyter notebooks organized in gdrive by creating local file structure in gdrive🤯 Sync local work on notebooks with gdrive🥂 Git friendly, pull changes from gdrive and commit to git✨ DemoInstallpip3installcolab-cliSet-upSTEP-1:First we need to get your client_secrets.json file for
OAuth2.0 authentication for Drive API,Go toAPIs Consoleand make your own project.Search for ‘Google Drive API’, select the entry, and click ‘Enable’.Select ‘Credentials’ from the left menu, click ‘Create Credentials’, select ‘OAuth client ID’.Now, the product name and consent screen need to be set -> click ‘Configure consent screen’ and follow the instructions. Once finished:a. Select ‘Application type’ to be Web application.b. Enter an appropriate name.c. Inputhttp://localhost:8080for ‘Authorized JavaScript origins’.d. Inputhttp://localhost:8080/for ‘Authorized redirect URIs’.e. Click ‘Save’.Click ‘Download JSON’ on the right side of Client ID to
download client_secret_<really long ID>.json.Rename the file to “client_secrets.json” and place it in any directory.STEP-2:Go to the local directory with client_secrets.jsoncolab-cliset-configclient_secrets.jsonSTEP-3:Now we need to set the google account user id, goto your browser and see how many google logins you have,
the count start from zerofor eg. I have 3 login and I use the second one for coding work, so my user id is 1colab-cliset-auth-user1🙌 Now You're all set to goUsagecolab-cli--helpList local ipynbcolab-clilist-nbNOTE : Please work with git repo initialized, else below
commands will not workOpen local ipynb file in google colab for first timeNote: It opens the copy of file in gdrive from second time onwards.colab-cliopen-nblesson1-pets.ipynbIf you need to get modified ipynb from gdrive local directory usecolab-clipull-nblesson1-pets.ipynbMade some changes to ipynb locally, push it to gdrivecolab-clipush-nblesson1-pets.ipynbTo make a new notebook, you can usecolab-clinew-nbmy_nb.ipynbAuthor👤Akshay AshokTwitter:@aks2899Github:@Akshay090LinkedIn:@akshay-a🤝 ContributingContributions, issues and feature requests are welcome!Feel free to checkissues page. You can also take a look at thecontributing guide.Show your supportGive a 🌟 if this project helped you!📝 LicenseCopyright © 2020Akshay Ashok.This project isMITlicensed.This README was generated with ❤ byreadme-md-generator
Package: colabcloud
colab-cloudAn experiment to have a resumable cloud workspace on Google Colab that persists all your settings and files across sessions.There are are numerous improvements over the original approach we hadproposedbefore:Uses the RAM to store all the user settings and extensions for code-server. This makes the editor snappier compared to disk and reduces the startup time.Uses Google Drive to persist the code editor settings across sessionsUses a dedicated folder on Google Drive to store all the code files. The editor will resume with all your code files.Useslocaltunnelinstead of ngrok for exposing the editor on web and allowing choice of custom subdomain.UsageYou can make a copy of thisnotebookand run it to get started.Alternatively, on Colab, install the library!pipinstallgit+https://github.com/amitness/colab-cloud-qqqThen, run the code with a unique subdomain of your choice.fromcolabcloudimportcolabcloudcolabcloud(subdomain='example')The editor can be accessed on your chosen URL e.g.https://example.loca.lt.
Package: colabcode
ColabCodeInstallation$pipinstallcolabcodeRun code server onGoogle ColaborKaggleNotebooks.Getting 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 Notebooksrequired arguments:--port PORT          the port you want to run code-server onoptional 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 default 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?Colabstarter notebook:ColabCodecomes pre-installed with some VS Code extensions.See an example in youtube videoLicenseMIT
Package: colabcode-domain
ColabCodeInstallation$pipinstallcolabcodeRun code server onGoogle ColaborKaggleNotebooks.Getting 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 Notebooksrequired arguments:--port PORT          the port you want to run code-server onoptional 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 default 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?Colabstarter notebook:ColabCodecomes pre-installed with some VS Code extensions.See an example in youtube videoLicenseMIT
Package: colabcodeModbyBitGeek29
ColabCodeInstallation$pipinstallcolabcodeRun code server onGoogle ColaborKaggleNotebooks.Getting 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 Notebooksrequired arguments:--port PORT          the port you want to run code-server onoptional 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 default 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?Colabstarter notebook:ColabCodecomes pre-installed with some VS Code extensions.See an example in youtube videoLicenseMIT
Package: colab-env
colab-envOutlineThis Python package handles environment variables inGoogle Colab. Environment variables are an important infrastructure component e.g. containing secrets such as API keys that ought not to be included directly in the codebase. At the time of writing, however, Google Colab does not have built-in support for environment variables.Our solution is to use thepython-dotenvpackage in concert with Colab's built in authorisation tool for Google Drive. The package will attempt tomount Google Drive locallyload environment variables from a file calledvars.envUsageTo load environment variables usingcolab-envyou should include the following code at the top of your Colab notebook:!pip install colab-env -qU
import colab_envThis will usually open thegoogle.colab.drive.mountauthentication flow. We use this authentication step to protect any secrets invars.env.Remember not to expose these secrets in the outputs of any cells!When the authentication challenge is passed, the environment variables will either be loaded into the Google Colab environment, orvars.envwill be created in your Google Drive.To modify environment variables usingcolab-envyou should do the following:!pip install colab-env -qU
from colab_env import envvar_handler... and then useenvvar_handler'sadd_envanddel_envmethods to add/modify and delete environment variables respectively fromvars.env.Take it for a test-driveSimply open upcolab-env/colab_env_testbed.ipynbin Google Colab and try it out!ContributorsPaddy Alton (paddy.alton@apolitical.co)(with thanks to theApoliticalengineering team for assistance and review)
Package: colab-everything
colab_everythingInstallpipinstallcolab_everythingIntroductionWe cannot access the localhost on Google Colab, as we do on our local
machine because Google Colab provides a VM(virtual machine). Hence, we
will have to expose it to a public URL to access it. We can usengrok.Ngrokexposes local servers behind NATs
and firewalls to the public internet over secure tunnels.This library hides away all the complexity and provides you simple
interface to run your webapps on colab. The library can be used in the
following scenario:To test your web app before deploying it into production. To share the
app with peers, friends, and clients; so that they can use/test your app
and provide feedbacks.How to useNote:The library is only responsible forport tunneling. So,
you will have setup everything required to run your web app. For
example; installing all the dependecies, setting up all the environment
varibles, etc.Streamlitfromcolab_everythingimportColabStreamlitColabStreamlit('app.py')# streamlit app pathFlaskfromcolab_everythingimportColabFlaskColabFlask('app.py')# Flask app pathFastAPINote:FastAPI usesuvicorn, so the syntax is a bit different. You
will have to pass only the file name (without extention). For example,
passmainif your app ismain.py.fromcolab_everythingimportColabFastapiColabFastapi('app')# FastAPI app file nameAny other Custom app or commandYou can useColabCustomto easily run an other app or command.To be very honest, you will never have to usehttp.serverbecause
colab already provides a file explorer. The example below is just for
demonstration purposes.Note:The default port is 9999. If you are using any other port then
you will have specify it twice; in the command and also in the argument.## Using default portfromcolab_everythingimportColabCustomcmd='python -m http.server 9999'ColabCustom(cmd)## Using non-default portfromcolab_everythingimportColabCustomcmd='python -m http.server 10000'ColabCustom(cmd,port=10000)I am actively looking for feedbacks and contributions. Feel free to
contact me atas.ankursingh3.1@gmail.com.