Saravanan666/pypi-org huggingface dataset:
Package: coderedcms
Wagtail CRX (CodeRed Extensions)The professional WordPress alternative for building marketing websites with
Wagtail and Bootstrap.Website|Documentation|BlogStatusPython PackageBuildWhat is Wagtail CRX?CRX, formerly known as CodeRed CMS, provides a large set of enhancements and
pre-built components for Wagtail which are ready to use out-of-the box! This
saves development time and avoids "re-inventing the wheel" by providing features
commonly needed by websites:Streamfield blocks and page templates for Bootstrap 5: rows, columns, hero
units, carousels, buttons, modals, cards, and more!Settings for adding logo, navigation, footer, and other common elements.Rich set of SEO tagging attributes on each page.Configurable Google Analytics and other tracking.Robust form builder including the ability for multi-step forms, conditional
logic, customized confirmation emails, MailChimp integration, and more.Article pages for building blogs, news, etc.Calendar and event pages.Google Maps blocks, and store locator functionality.Dynamic classifier system, for creating filterable categories.Website search functionality, filterable by page type.Style your site using SASS/SCSS directly from Django, without the need for
Node.jsQuick startRunpip install coderedcmsRuncoderedcms start mysite --sitename "My Company Inc." --domain www.example.comNote:--sitenameand--domainare optional to pre-populate settings of your website.Enter the projectcd mysite/Runpython manage.py migrateto create the core models.Runpython manage.py createsuperuserto create the initial admin user.Runpython manage.py runserverto launch the development server, and go tohttp://localhost:8000in your browser, orhttp://localhost:8000/admin/to log in with your admin account.See thedocumentationfor next steps and customizing your new site.ContributorsIn addition to the CodeRed team, many thanks to the Wagtail community and ourindependent contributors.If you're interested in building, developing, or contributing to Wagtail CRX,
check out theContributing Guide.AttributionIcon files incoderedcms/templates/coderedcms/icons/:Were sourced from the Fork Awesome project athttps://github.com/ForkAwesome/Fork-Awesome.Are licensed under the Creative Commons Attribution 3.0 Unported
license, a copy of which is available athttps://creativecommons.org/licenses/by/3.0/Have been modified from the original sources.ContactWe would love to hear your questions, comments, and feedback. Open an issue on Github, message us on#coderedcms in the Wagtail slack.
Package: coderedcms-bootstrap4
Bootstrap 4 Theme for Wagtail CRXThis is a compatibility package for older sites built withcoderedcms0.x
series wishing to upgrade to 1.x series (which switched to Bootstrap 5) without
needing to make any frontend changes.Provides the older Bootstrap 4 templates fromcoderedcmsversion 0.25.Provides the older Sass/CSS files fromcoderedcmsversion 0.25.Provides Bootstrap 4.6.2 Sass and CSS/JS distribution.Installationpip install coderedcms-bootstrap4Then in your Django settings file, addcoderedcms_bootstrap4abovecoderedcmsinINSTALLED_APPS. This will make this theme's templates and
static files override those shipped withcoderedcms. Also addbootstrap4.INSTALLED_APPS=[...,"coderedcms_bootstrap4","coderedcms","bootstrap4",...,]That's it! Continue to extend templates or import static files as usual fromcoderedcmsand you will instead be getting the Bootstrap 4 versions from this
theme.NOTE: This theme will be maintained with necessary bug fixes, but will not
receive any new designs or new features. It is recommended to eventually upgrade
your sites to Bootstrap 5.
Package: coderedo
CoderedoPython code reformaterCoderedo is a simple program that allow you to reformat your python code,
after indention error for example 🤗️.Installationpipinstallcoderedo
python-mcoderedo-pfile.py# or apply on a directorypython-mcoderedo-pprojects/Arguments:-p or --path: the path to a python file or python project directory-go or --get-old: set value on 1 to get the old version of the processed file.(optional)-t or --tab-size: your tab size, default value: 4(optional)Example with a fileTake this file: test.pydeffunc():print("Hello Wolrd !")print("Your are awesome")func()Output after running test.pyFile"test/test.py",line4print("Your are awesome")^TabError:inconsistentuseoftabsandspacesinindentation🤧️ There was a runtime error because, there are spaces for the indentation on line 2 and tabs on line 3.Note: In python, there only must be indentions or spaces per code sub blocFix this with coderedofixpythoncoderedo.py-ptest/test.pyRun this nowpythontest/test.pyOutputHelloWolrd!
YourareawesomeOuff 🙂️...Example with a directoryYou can apply coderedo on all the files of a directory recursivelyExampleproject/utils/functions.pyvariables.pymain.pypython-mcoderedo-dprojectis equal topython-mcoderedo-dproject/main.py
python-mcoderedo-dproject/utils/functions.py
python-mcoderedo-dproject/utils/variables.pyAfter applying coderedo, get old version ofa directoryJust add the -go argument with 1 as a valuepython-mcoderedo-dproject-go1You will have the directoryproject-old.a filepython-mcoderedo-dtest.py-go1You will have the filetest-old.py.
Package: codereef
[![Downloads](https://pepy.tech/badge/codereef)](https://pepy.tech/project/codereef)
[![PyPI version](https://badge.fury.io/py/codereef.svg)](https://badge.fury.io/py/codereef)
[![Python Version](https://img.shields.io/badge/python-2.7%20|%203.4+-blue.svg)](https://pypi.org/project/codereef)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)Linux/MacOS: [![Build Status](https://travis-ci.org/codereef-ai/client.svg?branch=master)](https://travis-ci.org/codereef-ai/client)
Windows: [![Windows Build status](https://ci.appveyor.com/api/projects/status/ef98qw1e16ql0sy9?svg=true)](https://ci.appveyor.com/project/gfursin/client)A cross-platform Client with a Command Line Interface and a Python API for the [open CodeReef portal](https://codereef.ai/portal).CodeReef documentation: [online](https://codereef.ai/static/docs)CodeReef white papers: [![ArXiv](https://img.shields.io/badge/cs.LG-arXiv%3A2001.07935-B31B1B.svg)](https://arxiv.org/abs/2001.07935)  [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3625479.svg)](https://doi.org/10.5281/zenodo.3625479)Copyright 2019-2020 [CodeReef SAS](https://codereef.ai)
Package: coder-evals
coder_evalsAI Maintainer Coder-Evals for benchmarking your coding agentDocumentation:https://docs.ai-maintainer.com/See our reference implementation with this harness here:https://github.com/ai-maintainer-inc/aiderHistory0.1.0 (2023-08-13)First release on PyPI.0.1.1 (2023-09-13)Open source preparationFixing a variety of branding and packaging problems0.1.3 (2023-09-18)Fixes a bug that prevented benchmarking multiple agents
Package: code-review
Creates links for PR updatesFree software: Apache Software License 2.0Installationpip install code_reviewDocumentationTo use the project:$python-mcode_review-husage:code_review[-h][-o][-s][-tTOKEN]Commanddescription.optionalarguments:-h,--helpshowthishelpmessageandexit-o,--openOpensnewcodereviewupdatesindefaultbrowser-s,--stdoutPrintscodereviewupdates-tTOKEN,--tokenTOKENTokentousewhencheckingforupdatesDevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.0.1 (2019-02-26)First release on PyPI.
Package: codereviewer
codereviewerMultiplatform program to help programmers in fast code reviews with quality.Usage:
    python3 codereviewer
        [--version| -v          ] The current version (Version 0.1.0).
        [--help   | -h          ] This help. Each option also has its own help.
        [--dir    | -d <path>   ] A path to a directory to be analyzed by codereviewer.
        [--file   | -f <path>   ] A path to a file to be analyzed by codereviewer.
        [--option | -op <option>] <fix|review|fix-review> whether you want to review-only, fix-only or both.
        [--require| -rq <file>  ] A json file containing rules for not allowed sentences and/or regular expressions.
        [--refuse | -rf <file>  ] A json file containing rules for allowed sentences and/or regular expressions.
        [--out    | -o <file>   ] A file containing the lines of code to be changed with the violations highlighted.

Examples:
    Check examples/codereviewer_require.json and examples/codereviewer_refuse.json
Package: code-rl
code-rl: Reinforcement Learning for Code GenerationOverviewcode-rlis a Python package designed to train language models in code generation through reinforcement learning methods. It seamlessly integrates with the OpenAI Gym environment, offering a structured framework to assess the quality of code generated by these models. As of version 0.0.3,code-rlexclusively supports the C programming language. Future iterations of the package aim to expand its capabilities to include support for Java and Golang.InstallationTo installcode-rl, run the following command:pipinstallcode-rlEnsure that you have Python 3.x installed before installation.Getting StartedPrerequisitesSystem support: Linux and Mac.You need to have gcc 6+ or clang 11+ preinstalledBasic UsageProvide a simple example of how to use your package. For example:fromcoderlimportCodeCompilerEnv# dummy modeldefmodel(prompt):return"int main(){return 0;}"env=CodeCompilerEnv()# Example of running a training episodeobservation="Give me a code to print hello world"for_inrange(1000):action=model(observation)observation,reward,done,info=env.step(action)ifdone:break# Update your prompt based on the stderr/stdout provided at infoprint(reward)print(info)API ReferenceCodeCompilerEnv: The Gym environment for code evaluation.reset(): Resets the environment to its initial state.step(action): Executes an action in the environment.ExamplesfromcoderlimportCodeCompilerEnvenv=CodeCompilerEnv()code="""#include<stdio.h>int main(){printf("Hello World");return 0;}"""result=env.step(code)print(result)# (1, 1, True, {'stdout': 'Hello World'})code="""#include<stdio.h>struct Point {int x, y;};int main(){if (1){printf("Hello World");}struct Point p = { 1 };  // Not initializing y will throw error in -Wextraprintf("%d", p.x );return 0;}"""result=env.step(code)print(result)# (0, -1, True, {'stderr': 'temp_code.c: ...'})code="""#include<stdio.h>int main(){int x; // unused variable -Wall will trigger warningprintf("Hello World");return 0;}"""result=env.step(code)print(result)# (0, -2, True, {'stderr': 'temp_code.c:4:9: error: unused variable ‘x’  ...'})code="""#include<stdio.h>void foo(void){return;}int main(){printf("Hello World");foo();}"""result=env.step(code)print(result)# (0, -2, True, {'stderr': 'temp_code.c:4:9: error: unused variable ‘x’  ...'})ContributingWe warmly welcome contributions tocode-rland value your efforts to improve and expand this package. If you're interested in contributing, please start by forking the repository and submitting your changes through a pull request. We encourage you to adhere to established Python coding standards (PEP 8) for consistency. When submitting a pull request, please provide a clear description of the changes and any relevant issue numbers. We also recommend adding tests for new features to ensure reliability. For substantial changes, please open an issue first to discuss what you would like to change. Your contributions play a significant role in the development ofcode-rl, and we look forward to collaborating with the community!LicenseMIT License
Package: codernitydb3
CodernityDB is opensource, pure python (no 3rd party dependency), fast (really fast check Speed in documentation if you don’t believe in words), multiplatform, schema-less,NoSQLdatabase. It has optional support for HTTP server version (CodernityDB-HTTP), and also Python client library (CodernityDB-PyClient) that aims to be 100% compatible with embeded version.You can call it a more advanced key-value database. With multiple key-values indexes in the same engine. Also CodernityDB supports functions that are executed inside database.VisitCodernity Labsto see documentation (included in repo).Note:documentation might be outdated due to migrationMigration to Python 3.xMIGRATION IS IN PROGRESS - SOME FEATURES MAY BE NOT PROPERLY SUPPORTED YETUnfortunately, when I found this database, Python 2.7 reached the end of its life and was no longer supported.So I decided to port CodernityDB to Python 3.x.I didn’t want to use tools allows simultaneous support for both versions, as it make no sense due to Python 2 EOL. Instead I tried to modify the code to work correctly on Python 3.Currently 98% of the test are successfully passed, but there’s still a lot of work to do.Version for Python 2.xOriginal version of CodernityDB is one of projects developed and released byCodernity Labs.Latest CodernityDB vesion with Python 2.x support was 0.5.0. You can find it’s source code in theofficial repository.Key featuresNative python databaseMultiple indexesFast (more than 50 000 insert operations per second see Speed in documentation for details)Embeded mode (default) and Server (CodernityDB-HTTP), with client library (CodernityDB-PyClient) that aims to be 100% compatible with embeded one.Easy way to implement custom StorageSharding supportInstallBecause CodernityDB is pure Python you need to perform standard installation for Python applications:pip install codernitydb3or using easy_install:easy_install codernitydb3or from sources:git clone ssh://git@github.com:nickmasster/codernitydb3.git
cd codernitydb3
python setup.py installLicenseCopyright 2020 Nick M. (https://github.com/nickmasster)Copyright 2011-2013 Codernity (http://codernity.com)Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: coder-retriever
Coder Retriever 🦮CodeRetriever: Your loyal coding companion. Just like a Golden Retriever, we're here to fetch and provide you with the most essential pieces of code.InstallationInstall the latest release:pip install coder_retrieveror intall the up-to-date version (might be unstable):pip install git+https://github.com/GitMarco27/coder_retriever.gitExamplesAI Assistant Digit Mnist ClassifierYou can find the complete examplehereimportcoder_retrieverascrassistant=cr.ai.assistant.AiAssistant(openai_api_key="YOUR API KEY")query="""- Load the digit mnist dataset from tensorflow datasets and covert it to X (images) and Y (labels) as numpy arrays"""assistant.run_code(query,vars=vars())...query="""- Show a batch of classified images, displaying True and Predicted labels."""assistant.run_code(query,vars=vars())
Package: coderunner
CodeRunner 🏃A judge 👨🏽‍⚖️ for your programs, run and test your programs using PythonInstallationInstall usingpipfrom PyPIpipinstallcoderunneror directly from GitHub if you cannot wait to test new featurespipinstallgit+https://github.com/codeclassroom/CodeRunner.gitUsagefromcoderunnerimportcoderunnerimportosfromdotenvimportload_dotenvload_dotenv()source_code="testfiles/"+"test_python_input.py"language="Python3"output="testfiles/output/"+"output2.txt"Input="testfiles/input/"+"input.txt"API_KEY=os.environ["API_KEY"]r=coderunner.code(source_code,language,output,Input)# Necessary step to initialize API keys & URLr.api(key=API_KEY)# run the coder.run()print("Running r :")print("Status : "+r.getStatus())print("Output : "+r.getOutput())# See Documentation for more methods.DocumentationCodeRunner DocumentationDevelopmentPrerequisitesPython 3.6+virtualenvCreate virtual environment.virtualenv-ppython3venv&&cdvenv&&sourcebin/activateClone the repository.githttps://github.com/codeclassroom/CodeRunner.gitInstall Dependencies.pipinstall-rrequirements.txtRun tests.pythontests.pyLint the project withflake8coderunner--max-line-length=88--ignore=F401
black--check--diffcoderunner📝 ChangelogSee theCHANGELOG.mdfile for details.:fire: Powered ByJudge0 API- Free, robust and scalable open-source online code execution systemAuthor👥Bhupesh VarshneyTwitter:@bhupeshimselfDEV:bhupesh📜 LicenseThis project is licensed under the MIT License. See theLICENSEfile for details.👋 ContributingPlease read theCONTRIBUTINGguidelines for the process of submitting pull requests to us.
Package: coderwall
A Python module for accessing user data athttp://coderwall.comInstallationThis module is available in thePython Package Indexand can be installed easily withpiporeasy_install:pip install coderwallUsageAll functionality is accessed through theCoderWallclass:>>> from coderwall import CoderWall
>>> cwc = CoderWall('cwc')
>>> cwc.name
u'Cameron Currie'
>>> cwc.location
u'Austin, TX'
>>> cwc.endorsements
0
>>> cwc.badges
[Charity: Fork and commit to someone's open source project in need,
Python: Would you expect anything less? Have at least one original repo
where Python is the dominant language, T-Rex: Have at least one original
repo where C is the dominant language]
Package: coderz
CoderZ pip3 pluginThis is plugin to control robot inside gocoderz game.RequirementBefore following the guide, please make sure you havepython3installed.[Optional] Virtual enviroment setupSome project dependencies are required in order to run the code, it is easiest to set everything up using the python venv package.
If you are familiar with python and wish to set up the dependencies some other way, please skip this part.Go to the project's main directory and create a virtual environment by typing:python3 -m venv ENVActivate the virtual environment by running:source ENV/bin/activateInstall the project's dependencies by typing:pip3 install -r requirements.txtYou are now ready to run the code.*When done working, deactivate the virtual environment by simply typingdeactivateCreate build of plugin and install itSimple run this script./build.shRunning the codeGo tohttps://multi.gocoderz.com, login and go to UnityTest -> Games -> Multi Game.
Once loading is finished, the second icon from the right on the top left panel is a screen with wifi signal, click on it and copy the authentication token.run index.py at the python repository, paste the token when requested and choose the example code you wish to run. Go back to the CoderZ website and click on the "Play" icon (run simulation).
Package: code-sage
Code SageA django middleware package that provides suggestions for unhandled errors/exceptions by using OpenAI.Currently, the suggestions are added to thepython loggers extra fields.FeaturesProvide suggestions to resolve unhandled errors using OpenAILocally cached code sage suggestionsEasily enable or disable code sage per environmentCustomize code sage's suggestion response word lengthRequirementsAn API key from OpenAPI,which can be found here.QuickstartInstallcode-sagewith a package manager, eg.:pip install code-sagepoetry add code-sagepipenv install code-sageAdd the following to either django settings or environment variables:OPEN_AI_API_KEY="your-api-key"CODE_SAGE_ENABLED=TrueUpdate the django middleware to includecode-sageMIDDLEWARE=[# ..."code-sage.middleware.ErrorHandlerMiddleware",# ...]ExampleThis was tested with the codeforxin100:print(x)which gave the suggestionTo fix this error, you need to replace the line "for x in 100:" with "for x in range(100):".
This will create an iterable object from the integer 100, allowing the loop to execute correctly.Testing showed that it can also reference variables names when suggesting a solution. This is thanks to thetraceback.format_exc()that is provided to OpenAI when requesting a solution.This also plays well with things like datadog, thanks to using theextrafield in pythons logging.ConfigurationA few things can be done to configure code sage. These can be set in either environment variables or
through django settings files.SettingTypeDefaultOPEN_AI_API_KEYString(None)CODE_SAGE_ENABLEDBooleanFalseCODE_SAGE_SUGGESTION_WORD_LIMITInteger120
Package: code-save
CodesaveTL;DR### When trainingfromcodesaveimportcheckpoint_to_wandbwandb.init(...)checkpoint_to_wandb(codebase_dirname)### Time to recoverfromcodesaveimportCodebase,download_from_wandbzipname=download_from_wandb(wandb_run_path)withCodebase(zipname):fromsrcimportmodelmodel.whatever_you_wantInstallation:pip install git+https://github.com/dibyaghosh/codesave.gitBasic UsageThe easiest way to use codesave is usingcheckpointorcheckpoint_to_wandb, which will take all the files in the directory and create a zip file.For example, suppose we have some repository with the following structure:codebase/
    src/
        model.py
        utils.py
    train.py
    eval.pyfrom codesave import checkpoint, checkpoint_to_wandb
checkpoint('codebase/', output_zipname='codebase.zip')
checkpoint_to_wandb('codebase/') # Stores it in the current wandb run (on the cloud)This creates a zipfile that we can use anywhere else  (even if we don't have codesave installed):import sys
sys.path.append('codebase.zip')
import src.model # This will load the library directly from the zip fileLoading a CodebaseUsingsys.pathThe easiest way, doesn't requirecodesaveto be installedimportsyssys.path.append('codebase.zip')# Or PYTHONPATH=codebase.zip:$PYTHONPATHimportsrc.model# This will load the library directly from the zip fileUsingCodebaseThe second easiest way, butcannot be run multiple times in the same process(because old modules are not unloaded)fromcodesaveimportCodebasewithCodebase('codebase.zip'):fromsrcimportmodelmodel.whatever_you_wantUsingUniqueCodebase(general, recommended)Using UniqueCodebase, we can load as many versions of a codebase as we want, and they can interact with each other.The import notation is a little less clean, but it's necessary to avoid conflicts.fromcodesaveimportUniqueCodebasecodebase1=UniqueCodebase('codebase.zip')codebase2=UniqueCodebase('codebase_v2.zip')model_v1=codebase1.import_module('src.model')# equivalent to (from src import model as model_v1) from codebase.zipmodel_v2=codebase2.import_module('src.model')# equivalent to (from src import model as model_v2) from codebase_v2.zipThere are some syntactic sugar options (these do some magic juju to automatically assign the module to a variable)codebase1.import_('src.model') # equivalent to `import src.model`
codebase1.import_('src.model', as_='model_v1') # equivalent to `import src.model as model_v1`
codebase1.from_import('src', ('model', 'utils')) # equivalent to `from src import model, utils`
codebase1.from_import('src', 'model', as_='model_v1') # equivalent to `from src import model as model_v1`Just Unzip ItYou can always unzip the zip file, and treat it as a normal directory.Integration w/ wandbWhen training,from codesave import checkpoint_codebase_for_wandb
wandb.init(...)
checkpoint_codebase_for_wandb('codebase/')Now at any point,from codesave import load_codebase_from_wandb
load_codebase_from_wandb(wandb_run_name, output_zipname='codesave.zip')
# Now we can add to sys.path or ZipCodebase as before