Saravanan666/pypi-org huggingface dataset:
Package: circbuf
circbufimplements a circular buffer for Python.
It allows for zero copy operation, i.e. it usesmemoryviewto expose consumer and producer buffers.
Access to the buffer is synchronised by locks, managed by context managers.Exampleimportcircbufbuf=circbuf.CircBuf()# Produce datawithbuf.producer_bufasmv:mv[0]=42buf.produced(1)print('First entry:{}'.format(next(iter(buf))))# First entry: 42FeaturesPure PythonMinimises allocation of big memory chunksAutomatic access synchronisationTested on Python 3.2, 3.3, 3.4Useful Linkscircbuf.hmemoryview
Package: circdeploy
circdeployEasily deploy your CircuitPython projectsDeploys the current working directory to a connected CircuitPython device.I don't like editing CircuitPython files directly from the mounted device folder. The OS may be
creating hidden files or your IDE may be saving files frequently which may trigger the device
to reboot.Default behavior:Copies all./**/*.pyand./**/*.pycfiles from the current directory to an
automatically detected CircuitPython device, skipping any files in.gitignore. Any remaining./**/*.pyand./**/*.pycfiles on the device are deleted (./lib/*is not deleted)$ circdeploy --help

 Usage: circdeploy [OPTIONS]

 Deploy current CircuitPython project
 All .py and .pyc files in the current directory tree will be copied to the destination (device)
 All other .py and .pyc files in the destination directory tree (device) will be deleted except /lib/

╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --source,--src        -s                    TEXT  Deploy from this location. [default: (current working directory)]                     │
│ --destination,--dest  -d                    TEXT  Deploy to this location. [default: (device path automatically detected)]              │
│ --delete                  --no-delete             Delete files in destination. [default: delete]                                        │
│ --use-gitignore           --no-gitignore          Ignore files using .gitignore files relative to source path. [default: use-gitignore] │
│ --dry-run                                         Don't copy files, only output what would be done.                                     │
│ --install-completion                              Install completion for the current shell.                                             │
│ --show-completion                                 Show completion for the current shell, to copy it or customize the installation.      │
│ --help                                            Show this message and exit.                                                           │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Package: circDraw
circDraw-pyThis is a stand alone project which extends the power ofcircDrawservice.DependencyMatplotlib3.1.2Numpy1.18.0Colour0.1.5Requests2.22.0Usage: Draw with circDrawCircDraw provides python package to use when drawing circular RNA with the emphasis on backspliting sites visulization and epigenetic marker display. ImportcircDrawclass via your favourite python3 interpreter or enbed it inside a script to use the drawing function.fromcircDrawimportcircDraw# initiate a circDraw instancecd=circDraw()# set color of circ_on_chr (optional)cd.set_palette(["#5CA0F2","#FF881D",'#e30067','#924900','#ab9c00','#ccd0d2','#075800','#5e0094',])# set color of modifications (optional)mod_palette={'m6a':'#E98B2A','m5c':'#E16B8C','m1a':'#64363C','pu':'#ffa12c','2ome':'#1a6f00','mre':'#6D2E5B','rbp':"#2B5F75",'orf':'#516E41'}cd.set_mod_palette(mod_palette)# draw backsplicing site on chromosome regioncd.circ_on_chr('/path/to/file')# draw modifications on circRNAcd.mod_on_circ('/path/to/file')Methodcirc_on_chrcircDraw.circ_on_chr(file,title='circDraw',dpi=300,save='png',show=True,size=(10,5))File:Only supported 'csv'StartEndTypeNameColor (Optional)Start < EndType:circ,exon,intron,geneColor: RGB, RGBA, hex, orsupported color names.Title: The title of the plotSave: file format you wish to save as,PNG,PDF,JPEG, etc.Show: Bool, wheather to show the plot after rendering.Size: (Length, Width) the size of the plot.mod_on_circcircDraw.mod_on_circ(self,file,dpi=100,save='png',show=True,size=(7,7),sep_mod=False)File:Only supported 'csv'StartEndTypeNameColor (Optional)Start < EndType:circ,exon,intron, and modifications typeModifications type:m6A,m1A,m5C,pU,2OMe,MRE,RBP,ORFColor: RGB, RGBA, hex, orsupported color names.Save: file format you wish to save as,PNG,PDF,JPEG, etc.Show: Bool, wheather to show the plot after rendering.Size: (Length, Width) the size of the plot.sep_mod: Bool, prevent the modifications from overlapping if setTrue.set_palettecircDraw.set_palette(palette)A list of colors, the length of the list must bigger than 5.set_mod_palettecircDraw.set_mod_palette(palette)A dictionary of colors match with the modification. You can change any one of the modification colors.More informationThis a part of circDraw project. Please visit ourContactpage if you have any questions.Copyright: Qu Lab, School of Life Science, Sun Yat-sen University, Guangzhou, CHINA.
Package: circfirm
A CLI tool for updating the firmware for CircuitPython boardsInstallationThe best way to installcircfirmis by usingpipx,
which creates an isolated virtual environment for the dependencies:pipxinstallcircfirmYou can also just usepipto install it, if the dependencies won’t cause issues:pipinstallcircfirmUsageThe follow commands show some of the functionality ofcircfirm:# Install a version of CircuitPython to a connected boardcircfirminstall8.0.0# Install a version of CircuitPython in French to a connected boardcircfirminstall8.0.0--languagefr# List all the cached (previously downloaded) CircuitPython versionscircfirmcachelist# List all the cached CircuitPython versions for a speciic boardcircfirmcachelist--boardfeather_m4_express# Save a version of CircuitPython to the cache
# (You can also use the --language option here)circfirmcachesavefeather_m4_express8.0.0# Clear the cached CircuitPython versionscircfirmcacheclear# You can use --board, --version, and --language options to further specify
# what firmwares should be cleared - this clears version 7.0.0 firmwares for
# all boards and in all languagescircfirmcacheclear--version7.0.0# See help/information about circfirm or any specific command using --helpcircfirm--helpcircfirminstall--helpcircfirmcachesave--help
Package: circkit
circkitcirckitis a small framework for defining, constructing and manipulating computational circuits. It aims to be very generic.circkitsupports both low-level circuits such as bit-based operations, word-based operations, arithmetic circuits over a ring and high-level circuits made up by gates which are customized non-primitive functions.InstallationFor arithmetic circuits working on finite fields, it needs to install Sagemath. For circuits working on decimal numbers, integers, boolean and bitwise, it is not necessary to install Sagemath.Circuits with SagemathInstallSagemath.Installcirckitin Sagemath:viaPyPI:sage -pip install circkitor viasetup.pysage -pip install .Run your script with Sagemath:sage -python script.pyOr you can open a notebook with Sagemath and build your circuit with thecirckitframework:sage -nCircuits without SagemathInstallcircuit:viaPyPI:pip3 install circkitor viasetup.pypip3 install .Run your python script, for example:python3 script.pyUsing a virtual environmentWe can use a virtual enviroment to runboth circuits with and without Sagemath.Create a virtual environment of Sagemath:sage -python -m venv --system-site-packages .venvThen, go to the virtual enviroment:source .venv/bin/activateInstallcirckitin the virtual environment.viaPyPI:pip install circkitor viasetup.pypip install .Run your script on the virtual enviroment, for example:python script.pyOr you can open a python notebook in this virtual enviroment and build your circuit. Again, both circuits working with and without Sagemath can be run on this virtual environment.TestsYou can run the tests in thetestsfolder:pytest testsNOTE: you should run the tests in the virtual environment (seeinstallation) because the tests consists of both circuits with Sagemath and circuits without Sagemath. Otherwise, it will fail on the tests requiring Sagemath.You can run a specific test, for example:pytest tests/test_simon_cipher.pyDocumentationSeecirckit.readthedocs.iofor the documentations. You can also open the filedocs/_build/html/index.htmlfile on your browser.TutorialsSome jupyter notebooks are provided to help you play with thecirckitframework:How to build an arithmetic circuitHow to build a bitwise circuitHow to build a boolean circuitHow to define a new circuit typeHow to define a transformer and example on ISW transformerAdvanced examplesSome advance examples are also provided. These examples highlight the applications of thecirckitframework in cryptography.Bit-slicing AESSimon cipherSpeck cipherMinimalist quadratic masking schemeAuthorsCryptoExperts Team
Package: circ-lang
Circles!This is an implementation of Circles which is a yet to be implemented graphical esolang created byPythonshellDebugwindow.I think this is a nice esolang so I'm gonna implement this.Circles?Make surepipis up-to-date.python -m pip install pip --upgradeOpython -m pip install circlesoInterpret Circles programs withpython -m circles path/to/program.pngFor more options and or thingies, dopython -m circles --helpThoughts on standardsI don't think you really need to have standards since it's entirely possible to detect circles of any size with opencv
Package: circleapi
circleapiYet another python wrapper for osu! apiTake a look at the "examples" folder for typical use cases.Disclaimercircleapi was made with my needs in mind (token management, massive concurrency, easy logging, async support), unless you know what you're doing I would highly recommend using another wrapper (aiosu,ossapi)Main featuresBuilt with high concurrency in mind (thread safe, coroutine safe)Optional async supportReusable Oauth2 token (api v2)Automatic Oauth2 token refresh (api v2)Built-in rate limitingBuilt-in thread supportStrict response validation (msgspec)Installation$pipinstallcircleapiDevelopment setup$gitclonehttps://github.com/miinorii/circleapi.git
$cdcircleapi
$python-mvenvvenv
$venv/bin/activate# linux$venv/Scripts/activate.bat# windows$pipinstall-rrequirements.txt
$pipinstall-e.Supported endpointsosu api v2beatmap_lookupget_user_beatmap_scoreget_user_beatmap_scoresget_beatmap_scoresget_beatmapsget_beatmapget_beatmap_attributesget_scoreget_own_dataosu.lea.moeget_ranked_idsget_loved_idsget_ranked_and_loved_ids
Package: circle-asset
A tool for getting the latest assets from CircleCI.usage: circle-asset [-h] [--version] [--api-root API_ROOT] [--token [TOKEN]]
                    [--branch BRANCH] [--accept-failed] [--build BUILD]
                    username project [artifact [artifact ...]]

Get the latest assets from CircleCI

positional arguments:
  username             GitHub username
  project              GitHub project
  artifact             Artifact name (or pattern) to get

optional arguments:
  -h, --help           show this help message and exit
  --version            show program's version number and exit
  --api-root API_ROOT  API root for CircleCI
  --token [TOKEN]      API key
  --branch BRANCH      Project branch
  --accept-failed      Accepts artifacts from the latest build
  --build BUILD        Go to a specific build
Package: circleci
circleci.pyPython Wrapper and SDK around the CircleCI APIWarningscircleci.py does not yet fully support CircleCI 2.1 or the Workflows APIFeaturesSupports thelatest v1.1 of the CircleCI API.Supports both circleci.com andCircleCI server(aka “Enterprise”).Experimental API endpoints using undocumented aspects of the API.Installationcircleci.py requires Python 3.Python 2 will be EOLsoon, it’s time to make the switch.pip install circleciQuickstartMake anew API tokenin the CircleCI application.Import the CircleCI API and start using methods:from circleci.api import Api

circleci = Api("$YOUR_TOKEN")

# get info about your user
circleci.get_user_info()

# get list of all of your projects
circleci.get_projects()You can read thegeneral documentationfor more information about using circleci.py.If you are interesting in hacking on this library, check out thedeveloper documentation.Real World ExamplesHere are a couple of real world examples of this library being used. If you want to add your example here, open up a PR.Lambda Function to Deploy via CircleCI– in this example the library is used to trigger deployment jobs in response to a webhook that triggers an AWS Lambda Job via AWS API Gateway.ContributingPlease create an issue with a description of your problem, or open a pull request with a fix.LicenseMITOriginal AuthorLev Lazinskiy -https://levlaz.org
Package: circleci2
CircleCI 2CircleCI v2 API wrapper with type annotations.Example:circle=circleci2.API(os.environ["CIRCLE_TOKEN"])forpipelineincircle.iter_project_pipelines(circleci2.ProjectSlug.github("r-darwish","circle2")):forworkflowincircle.iter_pipline_workflows(pipeline.id):print(workflow.name)
Package: circleci-audit
CircleCI AuditThis tool is intended to help you audit any secrets that you may have configured in CircleCI.It was developed specifically to assist with the recommendations ofthis security alert.Pre-requisites:Python 3.7+SetupCreate a CircleCI Personal TokenFollowthese instructions.This token is used bycircleci-auditto authenticate with the CircleCI API.circleci-auditcan only access
repositories that are accessible to the account that owns this personal API token.Install circleci-audit:$python3-mpipinstallcircleci-audit
$exportCIRCLECI_AUDIT_TOKEN="your personal token"$circleci-audit--helpCommandsOrganizationsList Organizations$circleci-auditorgs
org-1github
org-2bitbucketRepositoriesList RepositoriesFor all organizations:$circleci-auditrepos
org-1examplehttps://github.com/your-org/example
org-2another-examplehttps://github.com/your-org/another-exampleFor a specific organization:$circleci-auditrepos--org=org-1
examplehttps://github.com/your-org/example
another-examplehttps://github.com/your-org/another-exampleList Repositories' Environment VariablesFor all organizations and repositories:$circleci-auditreposvars
org-1repo-1env-1
org-2repo-2env-2For all repositories in a specific organization:$circleci-auditreposvars--org=org-1
repo-1env-1
repo-2env-2For a specific repository:$circleci-auditreposvars--org=org-1--repo=repo-1
env-1
env-2List Repositories' SSH KeysFor all organizations and repositories:$circleci-auditreposkeys
org-1repo-1github-deploy-keykey:finger:print
org-2repo-2ssh-keykey:finger:printFor all repositories in a specific organization:$circleci-auditreposkeys--org=org-1
repo-1github-deploy-keykey:finger:print
repo-2ssh-keykey:finger:printFor a specific repository:$circleci-auditreposkeys--org=org-1--repo=repo-1
github-deploy-keykey:finger:print
ssh-keykey:finger:printList Repositories' Configured With JiraList all repositories that have been configured with a secret token to authenticate to Jira.For all organizations and repositories:$circleci-auditreposjira
org-1repo-1
org-2repo-2For all repositories in a specific organization:$circleci-auditreposkeys--org=org-1
repo-1
repo-2ContextsListFor all organizations:$circleci-auditcontexts
org-1example
org-2another-exampleFor a specific organization:$circleci-auditcontexts--org=org-1
example
another-exampleList Contexts' Environment VariablesFor all organizations and contexts:$circleci-auditcontextsvars
org-1context-1env-1
org-2context-2env-2For all contexts in a specific organization:$circleci-auditreposvars--org=org-1
context-1env-1
context-2env-2For a specific context:$circleci-auditreposvars--org=org-1--context=context-1
env-1
env-2
Package: circleci-env-cli
circleci-env-cliCLI tool for manage CircleCI contexts and environment varsInstallationInstall locallypip install -r requirements.txt
./circleci_env_cli.py [OPTIONS]Install via Pippip install circleci-env-cliInstall via Dockerdocker pull phsmith/circleci-env-cli:[VERSION]

# Run example
docker run --rm -it \
  -v $HOME/project/.env:/env \
  -e CIRCLE_TOKEN=${CIRCLE_TOKEN} \
  phsmith/circleci-env-cli:latest [OPTIONS]UsageACircleCI personal API tokenmust be create before use this tool.All options can be specified as environment variables in the format:CIRCLE_<OPTION>.Example:CIRCLE_TOKEN=********Usage: circleci-env-cli [OPTIONS]

  CLI tool for manage CircleCI contexts and environment vars

Options:
  -u, --api-url <circleci_api_url>
                                  [default: https://circleci.com/api]
  -t, --token <circleci_token>    [default: (CIRCLE_TOKEN)]
  -c, --context <context_name>    It will ask for create if does not exists
  -p, --project <project_slug>    Example: github/org-name/project-name
                                  [required]
  -e, --env <environment_var>
  -ef, --env-file <environment_vars_file>
  -l, --list-envs
  -d, --delete                    Context only, will delete the context
                                  Context + vars, will delete the context vars
                                  Vars only, will delete the environment vars
  -ot, --owner-type <owner_type>  [default: organization]
  --debug
  --help                          Show this message and exit.ExamplesList project environment variables$ circleci-env-cli -p github/myorg/myproject -l
>
KEY1
KEY2Add project environment variables$ circleci-env-cli -p github/myorg/myproject -e KEY1=VAL1 -e KEY2=VAL2 -ef project.envs.txt
> Successfully add/update variable: KEY1
> Successfully add/update variable: KEY2
> Successfully add/update variable: KEY3
> Successfully add/update variable: KEY4Delete project environment variables$ circleci-env-cli -p github/myorg/myproject -e KEY1 -e KEY2 -d
> Successfully delete variable: KEY1
> Successfully delete variable: KEY2List context variables$ circleci-env-cli -p github/myorg/myproject -c mycontext -l
>
KEY1
KEY2Create/update context and add variables$ circleci-env-cli -p github/myorg/myproject -c mycontext -e KEY1=VAL1 -e KEY2=VAL2
The context named "mycontext" was not found. Do you want to create it? [y/n]: y
> Successfully create context: mycontext
> Successfully add/update context variable: KEY1
> Successfully add/update context variable: KEY2Delete context variables$ circleci-env-cli -p github/myorg/myproject -c mycontext -e KEY1 -e KEY2 -d
> Successfully delete context variable: KEY1
> Successfully delete context variable: KEY2Delete context$ circleci-env-cli -p github/myorg/myproject -c mycontext -d
Are you sure want to delete the context "mycontext"? [y/n]: y
> Successfully delete context
Package: circleci-flaky
circleci-flakyA command line utility to fetch a list of flaky tests from a CircleCI project.FeaturesCircleCI provides an "Insights" section for your workflows, but it's limited in how far back the data goes.circleci-flakyallows you to specify up to 100 of the previous failed builds to check for recurring failed tests. It defaults to checking the master branch and displaying all failed tests, but both of these can be customized.$circleci-flaky-h
usage:circleci-flaky[-h][--branchBRANCH][--buildsN][--topN]project

CheckaCircleCIprojectforflakytests

positionalarguments:projecttheprojecttocheck

optionalarguments:-h,--helpshowthishelpmessageandexit--branchBRANCHbranchtocheckforfailures(default:master)--buildsNnumberoffailedbuildstocheck(default:30)--topNlimitresultstothetopN(default:all)InstallationYou can installcircleci-flakyvia pip fromPyPI.# If you run both Python 2 and 3 on your system, use pip3sudopip3installcircleci-flaky# If you only run Python 3, you can just use pipsudopipinstallcircleci-flakyUsageBecause this tool leverages the CircleCI API, you'll need a Personal API Token.
Navigate tohttps://circleci.com/account/apiand create a new token (note it
down).Run the command like so:CIRCLECI_TOKEN=your_tokencircleci-flakyorg/repoIf you want to persist the token for multiple runs in your terminal, export it instead:exportCIRCLECI_TOKEN=your_tokenthen run the command without specifying the token:circleci-flakyorg/repoContributingContributors welcome!LicenseDistributed under the terms of theMITlicense,circleci-flakyis free and open source software.IssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.
Package: circleci-stubs
CircleCI-StubsThis repository contains type stubs for theCircleCIlibrary. The purpose of this package is to provide type hinting and improved type checking for users of the CircleCI library until the primary library includes thepy.typedfile.InstallationTo install the CircleCI stubs, simply usepip:pipinstallcircleci-stubsUsageAfter successfully installing the circleci-stubs package, type hinting and type checking for the CircleCI library should start working automatically with mypy or other compatible tools.StatusThis package is meant to be a temporary solution, and we will gladly remove it once the main CircleCI library updated to include the required py.typed file.
We do not claim any warranties, and we are not affiliated with the original library maintainers.ContributingIf you find any issues or improvements in the stubs provided here, please feel free to open a Pull Request or an Issue on the project's GitHub repository.LicenseThis package is released under theMIT License.AcknowledgmentsThe circleci-stubs package is not officially affiliated with CircleCI or the original library. It is an independent effort by the community, intended to benefit users by providing type checking until the original library is updated.
Package: circleci-to-sqlite
circleci-to-sqliteSave data from CircleCI to a SQLite database.How to install$ pip install circleci-to-sqliteAuthenticationCreate a CircleCI personal access token:https://app.circleci.com/settings/user/tokensRun this command and paste in your new token:$ circleci-to-sqlite authThis will create a file calledauth.jsonin your current directory containing the required value. To save the file at a different path or filename, use the--auth=myauth.jsonoption.As an alternative to using anauth.jsonfile you can add your access token to an environment variable calledCIRCLECI_TOKEN.Fetching all data for the current userThecircleci_to_sqlite.shexample script shows how to downloadalldata for the current user's followed projects, skipping jobs that already have steps.$ ./circleci_to_sqlite.shFetching followed projects for the current userTheprojectscommand retrieves all of the projects for the current user.$ circleci-to-sqlite projects circleci.dbFetching jobs for a projectThejobscommand retrieves all of the jobs belonging to a project. A project is specified by its slug, which has the form{vcs_type}/{username}/{reponame}.$ circleci-to-sqlite jobs circleci.db github/seem/circleci-to-sqliteFetching steps for a jobThestepscommand retrieves all of the steps and their actions belonging to a job.$ circleci-to-sqlite steps circleci.db github/seem/circleci-to-sqlite 8DevelopmentTo contribute to this tool, first checkout the code. Then create a new virtual environment:cd circleci-to-sqlite
python -mvenv venv
source venv/bin/activateOr if you are usingpipenv:pipenv shellNow install the dependencies and tests:pip install -e '.[test]'To run the tests:pytest
Package: circleci-webhook-manager
circleci-webhook-managerThis project aims to provide a simple way to manage CircleCI webhooks.
It aims to provide a way to manage webhooks for multiple projects (e.g., organization-wide).This project is not affiliated with CircleCI and is not an official CircleCI project.
But it is an open-source project that is free to use and modify.Work in process, YMMV...UsageThis project uses:poetryfor dependency management and packaging.poethepoetfor task running.pytestfor testing.blackfor auto-formatting.mypyfor static type checking.pre-commitfor git hooks.rufffor linting.mkdocsfor documentation.Ensure you have installed the relevant dependencies before continuing.Install dependenciespoetryinstallRun testspoetrypoetest# or: poetry run poe test