Saravanan666/pypi-org huggingface dataset:
Package: codeblocks
codeblocksExtract and process code blocks from Markdown files. Now you can keep code examples automatically:formatted (e.g. usingblackfor Python)type checkedunit testedlintedup-to-date with--helpetcInstallWith pip:pip install codeblocksWith poetry:poetry add codeblocksUsageUsage: codeblocks [OPTIONS] LANGUAGE FILE [COMMAND]...

  Extract or process LANGUAGE code blocks in Markdown FILE.

  Extract Python code blocks:
      codeblocks python README.md

  Reformat Python code blocks using black, in place:
      codeblocks python README.md -- black -

Options:
  --wrap   Wrap each code block in a function.
  --check  Do not modify the file, just return the status. Return code 0 means
           block matches the command output. Return code 1 means block would
           be modified.

  --help   Show this message and exit.ExamplesExtract Python code blocks:codeblocks python README.mdCheck formatting of Python code blocks with black:codeblocks --check python README.md -- black -Reformat Python code blocks with black,in place:codeblocks python README.md -- black -Type check Python code blocks with mypy (--wrapputs each code block into its own function):mypy somemodule anothermodule <(codeblocks python --wrap README.md)Insert the output ofcodeblock --helpintousageblock in this README.md:codeblocks usage README.md -- codeblocks --helpCheck thatusageblock in this README.md is up-to-date with--helpoutput:codeblocks --check usage README.md -- codeblocks --helpFull type checking exampledefplus(x:int,y:int)->int:returnx+yplus(1,'2')$ mypy --pretty --strict <(codeblocks python README.md)
/dev/fd/63:5: error: Argument 2 to "plus" has incompatible type "str"; expected "int"
        plus(1, '2')
                ^
Found 1 error in 1 file (checked 1 source file)RationaleThere are alternative tools, but none of them supported all of the cases above.prettiercan reformat Markdown code blocks(PR), but it works only for supported languages like JavaScript. It does not support Python. No lint or unit test support.blacken-docscan reformat Python code blocks, but it does not support allblackoptions. For example,black --checkis not supported. No lint or unit test support. In addition,codeblocksimplementation is much simpler and is not coupled with black.excodeis very similar, but does not support in place modifications.gfm-code-blocksdoes not have command line interface.cogis fully generic, but requires writingscripts embedded in Markdown
Package: codebook
Get your code into a jupyter notebook. Anytime. Anywhere.Check out mySciPy 2018 talkfor the
motivation and a feature tour of pynt.FeaturesGenerate jupyter notebooks on the flyNo more copy and pasting code into jupyter notebooks. Each line of code
gets its own cell.Alt TextAttach a jupyter notebook to a running processRun a command which hits the code in the notebook. Restart the notebook
kernel to attach to that process.Alt TextSyntax transformationsUnroll the first pass of loops for increased interactivity.Alt TextScroll the resulting jupyter notebook with the code bufferNever forget which cell a code line corresponds to.Alt TextQuick StartDisclaimer: pynt is in beta. Make sure to back-up your code before
using it!Install the codebook modulefrom
PyPIwithpip.$ pip install codebookThen install pynt in emacs throughMELPA.M-x package-install RET pyntThe next time you visit a python file pynt mode will be active.What is pynt?pynt is an emacs minor mode for getting source code into jupyter
notebooks so you can hack on it there. If you have access to source code
and a command to call it with then you can get your code into a jupyter
notebook.However, just pasting your code into one big jupyter notebook cell is
not particularly useful. pynt alsosplits up code into cells so it’s easy to evaluate small bitssets up the state required to run code (by allowing you to attach
notebooks to external processes)takes code previously buried in various namespaces (e.g. functions
and loops) and exposes them to the global namespace so you can
interact with themUsing pyntIt is highly recommended that you familiarize yourself withEmacs
IPython Notebook
(EIN)first as
pynt, at its core, is a tool to make working with EIN easier.Once you have opened a python file and pynt mode is active, cursor over
to the region of code you would like to dump into a notebook and hitC-cC-s. If you need to “re-dump” the code into the notebook then
hitC-cC-e.If you want to attach a jupyter notebook to a running process, then run
a command which hits the jupyter notebook code. Restart the jupyter
notebook kernel withC-cC-r(ein:notebook-restart-kernel-command). When you see the messageein: [info] Starting channels WS: ...your notebook is attached!How pynt workspynt uses acustom kernel
managerfor attaching to jupyter
notebook kernels started via third-party processes. When pynt generates
a jupyter notebook from a code region that code region is replaced with
a IPython kernel breakpoint so that subsequent commands that hit it will
start a jupyter kernel for the notebook to attach to. Seeherefor more information.pynt also makes heavy use of the`ast<https://docs.python.org/3/library/ast.html>`__ module to parse
your code into chunks which are then dumped into notebook cells.Related Projectspynt is a tool that trulystands on the shoulders of
giants.
Here are some projects where if they had not existed, then pynt would
not have been possible.JupyterEmacs IPython
NotebookEmacsSpacemacsPythonSLIMEvim-slime
Package: codebooks
CodebooksAutomatically generate codebooks from dataframes. Includes methods to:Infer variable type (as unique key, indicator, categorical, or continuous).Summarize values with histograms and KDEs.Generate a self-contained HTML report (may be extended to PDF or other formats in the future).Usage:codebooks -o output.html input.csvAdding variable descriptionsYou can specify a csv file that maps variable names to descriptions using:codebooks --desc descriptions.csv -o output.html input.csvThe csv file is expected to have two columns (variable name, description).License3-Clause BSD (see LICENSE)AuthorsMark Howisonhttp://mark.howison.org
Package: codebots
This is a collection of simple bots to help with boring tasks during coding.Currently supported bots:EmailBot: useful to get an email when a task is completeSlackBot: same thing, but you get a slack message instead.TeleBot: again the same thing, but you get a message on Telegram this time.sshBot: this is different…it will help you with ssh stuff.DeployBot: this bot is in charge of helping you with repository deployments.DriveBot: in case you need to automate the way you talk to your G-Drive.LatexBot: if you are a nerd and you use latex but the ones around you are not.Full documentation:https://franaudo.github.io/codebots/latest/.FeaturesFree software: MIT licenseEasy to useAwesome command line interfaceFun (well, for someone…)CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: codeboxapi
CodeBoxCodeBox is the simplest cloud infrastructure for your LLM Apps and Services.
It allows you to run python code in an isolated/sandboxed environment.
Additionally, it provides simple fileIO (and vector database support coming soon).InstallationYou can install CodeBox with pip:pipinstallcodeboxapiUsageexportCODEBOX_API_KEY=sk-***************fromcodeboxapiimportCodeBox# startup and automatically shutdown a new codeboxwithCodeBox()ascodebox:# check if it's runningprint(codebox.status())# run some codecodebox.run("a = 'Hello'")codebox.run("b = 'World!'")codebox.run("result = a + ', ' + b")result=codebox.run("print(result)")print(result)# Hello, World!Where to get your api-key?CodeBox is currently in early development so I created a stripepayment link as loginsystem.
Bear in mind, we don't have many automations set up right now,
so you'll need to write anemailfor things like refunds,
sub cancellations, or upgrades.DocsCheckout thedocumentationfor more details!ContributingFeel free to contribute to this project.
You can open an issue or submit a pull request.LicenseMITContactYou can contact me atcontact@codeboxapi.com
Package: codeboxcli
CodeboxCLI for Saving and Sharing Code SnippetsAbout The ProjectCodebox is a command-line interface (CLI) program that allows you to easily save and share code snippets directly from your terminal. It provides a simple and efficient way to manage your code snippets with features like adding, listing, and deleting snippets.Table of ContentsInstallationUsageAdding a SnippetListing SnippetsDeleting SnippetsSharing SnippetsLicenseInstallationTo use Codebox, you need to have Python installed on your system. You can install Codebox using pip:pipinstallcodeboxcliUsageAdding a SnippetTo add a code snippet, use the following command:codeboxadd--name<snippet_name>--tags<tag1><tag2>...Listing SnippetsTo list all saved snippets, use the following command:codeboxlistDeleting SnippetsTo delete one or more snippets, use the following command:codeboxdelete<snippet_id>...Sharing SnippetsTo share one snippet, use the following command:codeboxshare<snippet_id>...LicenseDistributed under the MIT License. SeeLICENSEfor more information.
Package: codebuddie
codebuddie: CLITo install codebuddie -run the following command in your terminal -pipinstallcodebuddieNow following are the ways you can use codebuddie -NOTE: setOPENAI_API_KEYas an environment variable before usingcodebuddieIt can update code with proper comments, docstring, and module docstrings in the following scenarios:1. If pointed to a local directory. [TODO]codebuddie-dpath/to/source/directoryorcodebuddie--dirpath/to/source/directoryorcodebuddie-dpath/to/source/directory-opath/to/destination/directory1. If pointed to a github repository. [TODO]codebuddie-slink/to/github_repositoryorcodebuddie--srclink/to/github_repositoryorcodebuddie-slink/to/github_repository-olink/to/destination/directory
Package: codebuddy
CodeBuddyv0.0.2stack overflow search on exceptionOverviewcodebuddyis a tool for python programmers. On exceptions, it uses the stack overflow public api to search for top answers and returns them in a neat fashion, along with traceback information for debug information.ExamplesBasic Usagefromcodebuddyimportcodebuddydefmain():print(7+"3")# <= that's illegalcodebuddy(main)This code returns an error, whichcodebuddycatches and gets stack overflow answers for.$ python3 main.py

Traceback (most recent call last):
  File "/home/aarushgupta/fun/codebuddy/codebuddy/__init__.py", line 6, in codebuddy
    function()
  File "test.py", line 4, in bob
    print(7 + "3")
TypeError: unsupported operand type(s) for +: 'int' and 'str'

============================================================================================
Exception of type TypeError caught by CodeBuddy
============================================================================================

============================================================================================
Possible Solutions
============================================================================================

--------------------------------------------------------------------------------------------

Python TypeError: unsupported operand type(s) for +: 'int' and 'str'
    I Have been working on a project and get the following error: `TypeError: unsupported operand type(s) for +: 'int' and 'str'.`
    URL: https://stackoverflow.com/questions/29261566/python-typeerror-unsupported-operand-types-for-int-and-str

--------------------------------------------------------------------------------------------

...Very neat indeed! The user also gets the description and url to the question in the results as well.Advanced Usagecodebuddyalso supports argumentsfromcodebuddyimportcodebuddydefmain(number:int):print(number+"3")# <= that's still illegalcodebuddy(main,1)# executes function as "main(1)"Copyright © 2022 Aarush GuptaThis code is copyrighted but licensed to the public under the GNU AGPLv3 license and any later versions.
Package: codebug_i2c_tether
# CodeBug I2C TetherControlling a CodeBug tethered over I2C.Documentation: [http://codebug-i2c-tether.readthedocs.org/](http://codebug-i2c-tether.readthedocs.org/)
Change Log
==========v0.3.0Brought I2C tether up to speed with USB tether with PWM, servo and
pullup support.v0.2.3Seperated input/output channel indexes to fix input bug. This includes
an update to the firmware.v0.2.2Minor changes toset_leg_iodoc string.v0.2.1Changed internal operation ofset_leg_io()method. Also updated
firmware.v0.2.0Addedset_leg_io()method so we can change leg direction.v0.1.0Initial Release
Package: codebug_tether
CodeBug Tether==============Control CodeBug in tethered mode over Serial USB.Documentation: http://codebug-tether.readthedocs.org/Features:- LED control- Inputs/Outputs (legs, buttons, extension pins)- Input/Output configuration (direction and pullups)- Extension pin control (I/O, SPI, I2C)Updating Notes--------------Be sure to update the version number in:codebug_tether/version.pyCHANGELOGdocs/conf.pyChange Log==========v0.9.1------- removed conditional checking RPi version; now always uses /dev/ttyACM0v0.9.0------- Added `scroll_sprite` method.- Moved platform checking code to its own module.v0.8.6------- Fixed bug with vertical sprites not allocating the correct amount ofsprite space.v0.8.5------- Fixed timing issue with servos and USB response.v0.8.4------- Default serial port is set to blank on error and added 'requires' tosetup.py- Added new installation docs.- Fixed firmware bug with legs 0 and 1.v0.8.3------- Nicer error message for Windows/OSX.v0.8.2------- More robust OS and serial port check.v0.8.1------- Figures out default serial port for Raspberry Pi 2 and below,Raspberry Pi 3 and above and MacOS.v0.8.0------- Added servo support.v0.7.4------- Fixed a bug with io_pwm() running three times faster than it should.Fixes #15.v0.7.3------- Fixed a bug with colourtail timing issue in the firmware.v0.7.2------- Fixed a bug with colourtail using the new set_bulk.v0.7.1------- Fixed a bug with set_bulk and updated tests.v0.7.0------- Fixed bytes error in serial_channel_device -- and/or/bulk commandswork again.- Added support for analogue inputs and PWM.v0.6.1------- Fixed error with `set_pullup`. Fixes issue #14.v0.6.0------- Added UART support.v0.5.0------- Updated packet layer, better support for bulk commands and AND/OR masks.- Added extension pin control.- Added I2C/SPI support.- Added Colour Tail (WS2812) support.v0.4.3------- Updated docs.v0.4.2------- Fixed `set_output()` but where setting value of one leg would resetthe other legs.v0.4.1------- Added timeout to serial initialisation and updated charmap `led_state`to `pixel_state` to match previous change.- Added `set_leg_io` method.v0.4.0------- Changed led -> pixelv0.3.0------- Removed confusing channel list.- Ready for release on GitHub.v0.2.0------- Added and_mask into set packets.v0.1.2------- Added some more examples.- Updated the readme.v0.1.1------- Fixed CodeBug.get_input().v0.1.0------- Inital dev release.
Package: codebuild-ci
CODEBUILD CICode Build Pipelines run Asynchronously and there is no provision to wait for them in bitbucket pipelines/ github actions to complete.
This project will wait for Codebuild pipeline to complete and log all the log events as well. This handles any abrupt pipeline stops.How to usepipinstallcodebuild-cipython-mcodebuild--projectproject--log-group<awsloggroup>Checking for other options:python-mcodebuild--helpIntegrate with Bitbucket Pipeline- script:
    - python -m pip install codebuild-ci
    - python -m codebuild-ci --project project --log-group <aws log group>contributing to codeYou can Fork the repo and raise a PR for the active development.Tips for testingStubbing Codefrombotocore.stubimportStubber# stub codestubber=Stubber(client)stubber.add_response('start_build',{'build':{'id':'foo-project:foo-id'}})stubber.add_response('batch_get_builds',{'builds':[{'id':'foo-project:foo-id','buildStatus':'SUCCEEDED'}]})stubber.activate()
Package: codebuilder
CodeBuilder is a CLI tool which allows developpers to use simple commands
and helpers inside AWS CI/CD tools like CodePipeline and CodeBuild.Quick StartGenerally, you would run CodeBuilder on anAWS CodeBuild environmentwhere AWS CLI is properly installed and configured. CodeBuilder uses the exact same authentication method as Boto 3 and AWS CLI.Install withpip:$pipinstallcodebuilderExample CodeBuild usage (buildspec.yml):version:0.1environment_variables:plaintext:KMS_CIPHERBLOB:"AQEC..."phases:install:commands:-pip install codebuilderpre_build:commands:-codebuilder aws ecr login-codebuilder aws kms decrypt ${KMS_CIPHERBLOB} > ${CODEBUILD_SRC_DIR}/secretbuild:commands:-docker build -t 123456789012.dkr.ecr.eu-west-1.amazonaws.com/foo .post_build:commands:-docker push 123456789012.dkr.ecr.eu-west-1.amazonaws.com/foo-codebuilder docker --image-name 123456789012.dkr.ecr.eu-west-1.amazonaws.com/foo get-image full --source-json-file config.json --in-place Parameters DockerImage-codebuilder aws ecr prune
Package: codechain
CodeChainCodeChain is a library for generating and evaluating code with LLMs.To install:pip install codechainTo install from source:pip install -e .To run unit tests:python tests/*.pyCode completionUsage is very simple:fromcodechain.generationimportCompleteCodeChainfromlangchain.chat_modelsimportChatOpenAIgenerator=CompleteCodeChain.from_llm(ChatOpenAI(model="gpt-3.5-turbo",temperature=0.2))result=generator.run("""def fibonacci(n):# Generate the n-th fibonacci number.""")print(result)Output:deffibonacci(n):# Generate the n-th fibonacci number.ifn<=0:return"Invalid input. n must be a positive integer."elifn==1:return0elifn==2:return1else:fib_list=[0,1]foriinrange(2,n):fib_list.append(fib_list[i-1]+fib_list[i-2])returnfib_list[n-1]LLM evaluationSeeherefor an example of how to use this library with HumanEval.
Package: codechefcli
CodeChef CLIA command-line tool for querying and submitting problems onCodeChef.FeaturesGet problem descriptionGet user informationSubmit problemsSearch problems in contest, by category, or by tagsGet ratingsGet problem solutionsGet contestsInstallationAvailable on pip. Install using the command:pip install codechefcliUsageSee full list of options:codechefcli –helpGet problem description:codechefcli –problem WEICOMGet contests:codechefcli –contestsSubmit a problem:codechefcli –submit WEICOM /path/to/solution/file C++
Package: code-cleaner
Source Code CleanerA library for text preprocessing of source code. The library offers a simple interface, and supports multiple programming languagesFree software: GNU General Public License v3Documentation:https://codecleaner.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-07-30)First release on PyPI.
Package: codecolor
codecolorInspect python object code with colorful syntax highlighting!Free software: Apache Software License 2.0Documentation:https://codecolor.readthedocs.io.Codecolor adds color when inspecting source code of python objects.
It applies syntax highlighting to object source code.The primary function of the codecolor module is theprintsourcefunction. Theprintsource(obj, style=”default”)function prints
the syntax-highlighted source code for the python objectobj.Codecolor combines the code inspection functionality ofinspect.getsource()and syntax highlighting functionality
of thepygmentspackage.ExampleHow does the pytorch relu function work under the hood?
You can easily inspect the source code of the pytorch relu function
by usingcodecolor.printsource(relu)to to print the source code of
the relu function with syntax highlighting.fromcodecolorimportprintsourcefromtorch.nn.functionalimportreluprintsource(relu)# prints the source code of the relu function with syntax highlightingFunctions:printsource(obj, style=”default”)getsource(obj, style=”default”)highlight_code(code, style=”default”)get_all_styles()To-DoAdd pytest unit testsFlesh out readmeExample usageMotivationInstallationCenter logo imageDeploy to pypiCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2020-09-19)First release on PyPI.
Package: codecombat
CodeCombat Python LibraryDocumentationAPI documentation is available athttps://codecombat.com/api-docs.InstallationAdd this dependency to your project's build file:pipinstallcodecombat# orpoetryaddcodecombatUsagefromcodecombat.clientimportCodeCombatApiclient=CodeCombatApi(username="CLIENT_ID",password="CLIENT_SECRET")constresponse=client.users.set_ace_config(document_id="document_id",live_completion=True,language="python");print('Received response from Code Combat',response);Async clientThis SDK also includes an async client, which supports theawaitsyntax:fromcodecombat.clientimportAsyncCodeCombatApiclient=AsyncCodeCombatApi(username="CLIENT_ID",password="CLIENT_SECRET")asyncdefset_ace_config()->None:awaitclient.users.set_ace_config(document_id="document_id",live_completion=True,language="python");Beta statusThis SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning the package version to a specific version in your build.gradle file. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.ContributingWhile we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggestopening an issuefirst to discuss with us!On the other hand, contributions to the README are always very welcome!
Package: code-commenter
Code CommenterGenerate stylized code comment headers to help make your code more readableBasic UsageTo print a comment header to the console rungenerate-comment-tMy_Script_Headingand if you wish to have it copied to your clipboard, add the-cflaggenerate-comment-tMy_Script_Heading-cCode commenter supports multiple language comments. The default is Python but if you wish to generate a comment for example, Golang, set the-langflag.generate-comment-tMy_Script_Heading-langGO
Package: code-comments
code-commentsThis project was created as a way of creating a central "annotation" file of all the useful
notes that might be created in a code base such astodoor 'tfsec' comments.ConfigurationThe project can be configured via a TOML file which by default is called.code-annotations.tomlbut can be override with the--configflag.Below is an example which can be found at.code-annotations.tomlfile_suffix=[".tf"]output_file="ANNOTATIONS.md"comment_syntax=["#"][[headers]]comment="tfsec"table_headers="File:Line|Type|Comment"[[headers]]comment="todo"table_headers="File:Line|Date|Comment"
Package: code-compass
Code CompassA simple and intuitive desktop application to manage your coding projects, built with Python and Qt (using PySide6).FeaturesOrganize projects into categories.Quickly access project information, such as project name, path, and last opened date.Easily add, create, delete, and run projects with built-in buttons.Customize your project's attributes like name, path, and category.Choose between different IDEs, such as PyCharm and Visual Studio Code.Tab-based navigation for easy access to different project categories.Installationpipinstallcode-compassUsagecode-compassConfigurationCode Compass uses a configuration file to store your preferences. The configuration file is located at~/.config/code_compass/config.yaml.Example# IDE commands to run when clicking the "Run" button.ide_commands:-pycharm-code# Default path to start browsing when adding or creating a new project.projects_path:/home/username/Projects# Cookiecutter template to use when creating a new project.cookiecutter:https://github.com/roman-right/py-templateContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.