Saravanan666/pypi-org huggingface dataset:
Package: codemeta2html
Codemeta2htmlIntroductionCodemeta2html is a command-line tool and software library to visualize software
metadata in thecodemetastandard. This library
builds oncodemetapy.FeaturesGenerates a complete static website with:richRDFadata (codemeta/schema.org/etc) embedded in the HTML,
expressing as much of the input linked data as possible. This means though we visualise for humans, we do
not sacrifice on machine parsability and semantic interpretability.index pages (card view & table view)one dedicated page per software source projectclient-side filtering (faceted search) capabilitiesdirect access to the underlying JSON-LD and Turtle serialisations per source project and for the complete data graph as a wholeresponsive layout suitable for different devices and screen-sizesbadges (aka shields) for GitHub, Repostatusminimal amount of external web calls (only for github/gitlab badges and for external resources references directly by the software metadata itself)minimal client-side javascript, also usable without (except for filtering)useful in combination withcodemeta-harvesterto visualize the results of the harvestNotesThis solution is designed to work well with tens or hundreds of
resources (software projects), it does not scale well beyond that to thousands
of resources.If you want a server-side solution that allows for live querying (using SPARQL),
then usecodemeta-serverinstead
(which has this project as main dependency).Installationpip install codemeta2htmlUsageYou can pass either a JSON-LD file describing a single software project and
have it output to standard output:$ codemeta2html --stdout yoursoftware.codemeta.json > yoursoftware.htmlOr you can pass a full JSON-LD graph describing multiple projects, effectively
usingcodemeta2htmlto generate a static website:$ codemeta2html --outputdir build/ yoursoftware.codemeta.jsonThis is the default behaviour, it also works on an input file for  single
software project although it may be overkill there.You can pass additional linked data (JSON-LD or turtle) to the context graph, this is used for
vocabularies that are referenced by the software metadata and ensures they can
be properly labelled in the visualisation. The use of SKOS vocabularies is supported and encouraged.
Consider the following example for the CLARIAH project:$ codemeta2html --title "CLARIAH Tools" --baseuri https://tools.clariah.nl/ --addcontextgraph https://w3id.org/nwo-research-fields --addcontextgraph https://raw.githubusercontent.com/CLARIAH/tool-discovery/master/schemas/research-technology-readiness-levels.jsonld --addcontextgraph https://vocabs.dariah.eu/rest/v1/tadirah/data\?format\=text/turtle data.jsonThe--baseuriparameter will adapt all resource identifiers to a single
common URI, which does not necessarily have to be the same as the URL the pages
are served from (you can use--baseurlfor that).AcknowledgementThis work is conducted at theKNAW Humanities Cluster'sDigital Infrastructure departmentin the scope of theCLARIAHproject (CLARIAH-PLUS, NWO grant 184.034.023) as
part of the FAIR Tool Discovery track of the Shared Development Roadmap.
Package: code-meters
code-meters -- Monitor resource usage of Python codeExampleAs a context manager:frommetersimportResourceMeterwithResourceMeter("Data Processing"):data=[x**2forxinrange(1000000)]# Data Processing: wall time: 0.24156 s (241560 microseconds), CPU time: 0.226669 s (226669 microseconds), memory: 92925952 bytes (88.6211 MiB)As a function decorator:frommetersimportmetered@metereddefprocess(n):returnsum([x**3forxinrange(n)])print(process(1000000))# process: wall time: 0.310323 s (310323 microseconds), CPU time: 0.291285 s (291285 microseconds), memory: 152657920 bytes (145.586 MiB)# 249999500000250000000000
Package: codemetrics-report
codemetrics-reportbuilds on top ofcodemetricsto quickly generate anhtmlreport of a repo.The generatedhtmlreport contains interactive graphs with:lines of code for each programming languageage of files and recent development activitylines of code and file agehotspotsCheck out thisblog postfor a hands-on introduction tocodemetrics. Most of the code in which the report relies on is based on thisnotebook.Many thanks to Eloi Démolis for the development of the main methods present in thehtmltemplate and Jérôme Lecomte for the development ofcodemetrics.UsageThe following command creates anhtmlfile in your current working directory (simply open it with your favorite web browser):generate-codemetrics-report<repo_location>Installationpipinstallcodemetrics-report
Package: code-mixed-text-toolkit
This repository has been archived!You can find the latest version of the source codeinside the CMTT repository, where it will continue to be developed.CMTT is a wrapper library that makes code-mixed text processing more efficient than ever. More documentation incoming!Installationpip install code-mixed-text-toolkitGet startedHow to use this library:importcode_mixed_text_toolkit.dataascmtt_dataimportcode_mixed_text_toolkit.preprocessingascmtt_pp# Loading json filesresult_json=cmtt_data.load('https://world.openfoodfacts.org/api/v0/product/5060292302201.json')# Loading csv filesresult_csv=cmtt_data.load('https://gist.githubusercontent.com/rnirmal/e01acfdaf54a6f9b24e91ba4cae63518/raw/b589a5c5a851711e20c5eb28f9d54742d1fe2dc/datasets.csv')# List the key properties available for the datasets provided by the cmtt librarykeys=cmtt_data.list_dataset_keys()# List all datasets provided by cmtt# Specifying the 'key' property allows to return the dataset names with the respective 'key' value# Specifying the 'key' as 'all' returns all the information pertaining to all the datasetsdata=cmtt_data.list_cmtt_datasets()print(data)# Download multiple datasets provided by cmtt, returning a list of paths where the datasets get downloaded# The Datasets are downloaded into a new 'cmtt' directory inside the root directory of the operating systemlst=cmtt_data.download_cmtt_datasets(["linc_ner_hineng","L3Cube_HingLID_all","linc_lid_spaeng"])# Download a dataset from a url, returning the path where the dataset gets downloaded# The Dataset is downloaded into a new directory 'datasets' inside the current working directorypath=cmtt_data.download_dataset_url('https://world.openfoodfacts.org/api/v0/product/5060292302201.json')# Load and preprocess txt datasetresult_txt=cmtt_data.load('https://www.w3.org/TR/PNG/iso_8859-1.txt')result_txt_tokenized=cmtt_pp.tokenizer.word_tokenize(result_txt)# Search target word in txt corpuscmtt_pp.search.search_word(result_txt,'with',tokenize=True,width=3)ContributorsParas GuptaTarun SharmaReuben Devanesan
Package: codemodder
codemodder-pythonThis is the Python version of theCodemodder Framework.Codemodder is sponsored bypixee.ai.Development StatusAs ofv0.80.0the codemod API is relatively stable. However, backwards compatibility between releases will not be guaranteed until version 1.0.0.SeeCHANGELOG.mdfor detailed release notes.InstallationThecodemodderpackage is availableon PyPI. To install, run:$ pip install codemodderTo install the package from source, usepip:$ pip install /path/to/codemodder-pythonRunning LocallyThe codemodder package provides an executable calledcodemodder. This should be available on your path by default after installation.For basic usage, run thecodemoddercommand with a target directory path:$ codemodder /path/to/my-projectNote that by defaultcodemodderwill make changes to files in your target directory. To runcodemodderwithout making updates on disk, use the--dry-runflag:$ codemodder --dry-run /path/to/my-projectTo list all available codemods (including any that are registered with installed plugins), use the--listoption:$ codemodder --listFor a full list of options, use the--helpflag:$ codemodder --helpArchitectureCodemods are composed of the following key components:DetectorTransformer(s)MetadataCustom CodemodsThe Python codemodder supports a plugin infrastructure for custom codemods. For users interested in developing a custom codemod plugin, we recommend starting with theCookiecutter template.DocumentationComing soon!ContributingSeeCONTRIBUTING.md.
Package: codemodimportfrom
codemodimportfromAutomatically update ImportFrom statements to "import modules, not objects".InstallFrom within your project's virtual environment, installcodemodimportfrom(as a dev dependency). e.g.pipinstallcodemodimportfromUsage# Transform all ImportFrom statements in the file path/to/file.pycodemodimportfrompath/to/file.py# Overwrite the filecodemodimportfrompath/to/file.py--write# Transform ImportFrom statements for modules foo and bar onlycodemodimportfrompath/to/file.py--modulefoo--modulebar# Allow object imports for typing.Optional and typing.Unioncodemodimportfrompath/to/file.py--allowtyping.Optional--allowtyping.Union# Allow all object imports from typingcodemodimportfrompath/to/file.py--allow"typing.*"# Parse allow list from a .txt file (one line per allowed object import)codemodimportfrompath/to/file.py--allowallow.txt# Also transform module imports# e.g. `from pydantic import dataclasses` becomes `import pydantic.dataclasses`codemodimportfrompath/to/file.py--transform-module-importsCaveatsNot tested with much real world code, yet.Relative imports (from . import foo) not implemented yet.
Package: codemodpydanticv1
codemodpydanticv1A small codemod tool to upgrade pydantic from V1 to V2, but still use the V1 API.
Pydantic V2 exposes the V1 API. By using the V1 API we can be sure nothing
is being broken by the package upgrade, and usage can then gradually be migrated
across to the V2 API.pipinstallcodemodpydanticv1

codemodpydanticv1<file>Usingripgrepand looping over files:forfilein$(rgpydantic-g'*.py'-l);doecho$filecodemodpydanticv1$filedone
Package: codemod-unittest-to-pytest-asserts
Acodemodto automatically refactor
unittest assertions with pytest assertions.InstallationThis codemod requires Python 3.8 or newer.With pip, assuming Python 3.8 or newer is used:python3 -m pip install codemod-unittest-to-pytest-assertsWith pipx, assuming Python 3.8 exists on the system:pipx install --python $(which python3.8) codemod-unittest-to-pytest-assertsUsageRun the installed command on the Python files or directory of files you want to refactor:codemod-unittest-to-pytest-asserts some-python-files.pyor:codemod-unittest-to-pytest-asserts some_directory/You’ll be asked to confirm all changes.It is recommended to run an autoformatter, like Black, after the
refactoring.
Package: codemon
Making the competitive programming workflow faster, oneCtrl+Sat a time !Competitive programming setups suck ! This was the motivation behind creating codemon.Codemon is a build tool for the terminal, and aims to make the workflow for competitive programming faster than ever. Codemon integrates flawlessly with popular editors such as VSCode, Sublime Text and Vim (❤) !Codemon + Vim + Tmux in ActionLike what you see ?Tmux Left Window - Vim Editor (write code here).Tmux Upper Right Window - Compile and run programs.Tmux Lower Right Window - Write inputs, if you didn't use "codemon fetch" yet.Installation InstructionsThere are many ways to installCodemon.Installation from Pypi using pippip install codemonInstallation from Github# clone the project & installgitclonehttps://github.com/ankingcodes/codemon.gitcdcodemon/
pip3install.# check installationcodemon-hContributionsDon't hesitate to create issues and PRs for improving codemon.
All contributions are welcome.LicenseThe MIT LicenseCopyright (c) 2021 Ankush Bhardwaj
Package: coden
This is a project based on codes, secret codes...Example:>>>importcoden>>>en=coden.secret("Hello PyPI",mode="encode")>>>print(en)j@nnqrar)>>>de=coden.secret("j@nnq rar)",mode="decode")>>>print(de)hellopypiWay to install:$pipinstallcodenRequirementsPython 3Home PageThank you,
Tanmay
Package: codename
CodenameA codename generator inspired byprojectcodename.comInstallation$pipinstallcodenameUsageCommand-line usage:$codenamekillerunicorn# Capitalize$codename-cUnexpectedDragon# Uppercase$codename-uSTALKINGBATTERY# Custom separator$codename-s_exploding_crab# Deterministic codenames$codename-i1.2.3+foodiamondguitar$codename-i1.2.3+foodiamondguitar$codename-husage:codename.py[-h][-c][-u][-sSEPARATOR]optionalarguments:-h,--helpshowthishelpmessageandexit-c,--capitalizeCapitalizewords.-u,--uppercaseUpper-caseeachword.-sSEPARATOR,--separatorSEPARATORStringtousetojoinwords.Defaultstowhitespace.-iID,--idIDStringtouseasrandomseedfordeterministiccodenames.
Package: codenav
CodéNavWeb App for cleaning, searching, editing, and navigating Python code.Installpip install codenavUsage"cd" to directory containing Python code"codenav" command in terminalApp will open automatically in current browser1. Click on folder name to expand or contract the tree2. OR click on caret-down to expand or contract the tree3. Click on file to open contents in a tab4. Click on x to close tab5. Click on pencil button to edit the current file6. Click in tab window and start editing7. Add new line ' print("extra printout here") '8. Click on Save button9. Click run button to run the current file10. Stop a script while it is running with "Stop" button11. Click on 🔎 Search Code Content to search all code in the current directory12. Type one or more search terms13. Click on Open Snip to open the function or class with the most matches14. Click on Open File button to open the entire file containing the snip15. Click on New Tab button to create empty tab16. Click "Up Folder" button to travel up one folder17. Edit the path textbox to change the current directory18. Click on "Clean File" button to run cleandoc on current file tabRead The DocsDownload "docs" folder orcheck preview.ContributingMessage me on Github.LicenseGNU GPLv3Copyright:(c) 2023, Jason Krist
Package: codenerix-lib
Codenerix LIB is a base module of libraries used byCODENERIX. It is a very usefull library
for any project and you can use it withoutCODENERIX. you can visit the project atGitHub Django
CODENERIXCODENERIXQuickstartInstall this package:For python 2: sudo pip2 install codenerix-lib
For python 3: sudo pip3 install codenerix-libSince Codenerix LIB is a library, you only need to import its parts
into your project and use them.Contact with us.
Package: codenitro
🔥Code Nitro: Code to Image from the Command LineEver want to share your code as an image? Code Nitro can do that. Code Nitro is lightweight, has minimal dependencies, and works online and offline.Don't send your code to third parties, use Code Nitro.🛠️InstallationYou can install thenitrocommand with pip.pipinstallcodenitroAnd that's it.🎬 DemoSource⭐FeaturesThere are three main features. (There are four items because the last one isn't really a feature.)Convert an entire file to an image. Code Nitro will save it in the same directory with the same name (but with .png).nitromy_code.pyConvert only part of a file by using--lines. For example,--lines=5-10will print lines 5 through 10, inclusive.nitromy_code.py--lines=5-10Download a file from GitHub and convert it to an image. You don't need to do anything special, just include the url in place of the filename.nitrohttps://github.com/lukesalamone/code_nitro/blob/master/nitro.pyYou can remove the shadow and gradient by passing--plain.
Package: codeoffer
CodeOffer Python PackageThis is a Python package that provides an API wrapper for the public CodeOffer API. The package simplifies authentication and management of in-app assets for developers who use the CodeOffer API in their applications.InstallationTo install the package, run the following command:pipinstallcodeofferUsageImport thecodeofferclass from the package:Authentication & SessionsInitialize a new session, but first you need to import theoauthclass fromcodeofferfromcodeofferimportoauthAfter that you can create a new session token:token=session.create_session_token()Now get the login link and ask the user to log in:token.get_login_link()Right after that call thetoken.wait_for_confirmation()method, this method will wait until the user completed the login-process.To return the current logged in user you need to import theuserclass fromcodeofferfromcodeofferimportuserThen you can return the current user by using theget_usermethod and passing the token as a parameter:user=user.User.get_user(token)And now you can get the username, email, profile picture and access to the current logged in app (if the user purchased / downloaded the app with his account)print(f"Hey{user.username}")AssetsYou can return all the apps your app contains.First import theappclass fromcodeofferfromcodeofferimportappThen you need to initialize the app with a session token.app=app.App.by_session_token(token)After that you can return all the assets your app contains and return properties like the name, identifier and if the user has access to that asset.assets=app.get_asset_directory()forassetinassets:print(f"{asset.name}:{asset.access}")Complete Examplefromcodeofferimportoauthfromcodeofferimportappfromcodeofferimportusersession=oauth.Session("10aa641e562bdd82d2f8449d")token=session.create_session_token()token.get_login_link()token.wait_for_confirmation()user=user.User.get_user(token)print(f"Hey{user.username}")app=app.App.by_session_token(token)assets=app.get_asset_directory()forassetinassets:print(f"{asset.name}:{asset.access}")LicenseThis package is licensed under the MIT License.
Package: code-opener-cli
Code Opener CLI ⌨️The command line interface to add any project as favorite and open it from anywhere using just one command. Usecopen addto add andcopen open <project_name>to open and . See commands to get idea on more things supported by Code Opener CLICommandsSee Lists of Projects Addedcopen seeAdd a ProjectMethod 1 :Adding Project just requires you to go to project usingcdfor the first time and type commandcopen addcd path/to/your/project
copen addThis will ask for project name, give any nick name to project which is handy to you and press Enter.Done :smile:, now you can open this project from anywhere .Method 2 :You can also directly add using one of the following single command :Using short name-pn:copen add -pn <project_name>Using defualt Option name :copen add --project-name <project_name>Open a ProjectAfter a project is added , you can easily open it from anywhere using this command . Remember that project_name is the name/nick name that you gave to your project .copen open <project_name>Remove a ProjectMethod 1 :Removing Project is very easy usingcopen removeThis will ask you for the project name and confirmation.Method 2 :You can also directly remove using one of the following single command :Using short name-pn:copen remove -pn <project_name>Using defualt Option name :copen remove --project-name <project_name>Other handy commandscopen: Will display welcome messagecopen --help: Provides list of commandscopen <add/remove/see/open> --help: Provides you help for particular commandcopen --version: Provides you the version of code-opener-cliContributing to ProjectLet's take this project to next level together 🎉 You can find the guidelines to contribute to this projecthere.ChangelogsAll notable changes to this projects can be found inCHANGELOG.md.
Currently, this CLI supports on VSCode, but support for other code editors/IDE's will be added soon :smile: .
Package: codeoptimist.yaml
Seehttps://github.com/CodeOptimist/rimworld-mod-description-toolfor example inheritance.---fruit1:&fruit1-name:'Strawberry'-name:'Apple'-name:'Banana'fruit1_names:&fruit1_names!each[*fruit1,'name']fruit1_names_joined:!join[",",*fruit1_names]fruit1_names_sliced:!each[*fruit1,'name','{l|_,3}']fruit2:&fruit2-property:&strawberry{common:'Strawberry',scientific:'Fragaria×ananassa'}-property:{common:'Apple',scientific:'Malusdomestica'}-property:{common:'Banana',scientific:'Musaacuminata'}fruit2_property:!each[*fruit2,'property']fruit2_scientific_joined:!join[",",!each[*fruit2,'property.scientific']]fruit3:&fruit3!insert-[*fruit1]-name:'Pineapple'fruit3_names:!each[*fruit3,'name']has_dog:~dog:'adognamed"[BRACKY]"'has_cat:Yupcat:'acatnamed"{{CURLY}}"'matrix:&matrix!concat-[1,2,3]-[4,5,6]-[7,8,9]float_matrix:!each[*matrix,~,'{l:.3f}']fruit4:!merge<:*strawberrycolor:'red'# [text to format, expected literal result]tests:-['{fruit1_names}',"['Strawberry','Apple','Banana']"]-['{fruit1_names_joined}','Strawberry,Apple,Banana']-['{fruit1_names_sliced}',"['Str','App','Ban']"]-['{fruit2_scientific_joined}','Fragaria×ananassa,Malusdomestica,Musaacuminata']-['{fruit3_names}',"['Strawberry','Apple','Banana','Pineapple']"]-['{dog}','adognamed"[BRACKY]"']-['{has_dog?={{dog}}is{dog}}','']-['{cat}','acatnamed"{CURLY}"']-['{has_cat?={{cat}}is{cat}}','{cat}isacatnamed"{CURLY}"']-['{has_cat?+suredo.}','Yupsuredo.']-['{optional?}','']-['{matrix}','[1,2,3,4,5,6,7,8,9]']-['{fruit4!e}',"{'common':'Strawberry','scientific':'Fragaria×ananassa','color':'red'}"]-['{float_matrix}',"['1.000','2.000','3.000','4.000','5.000','6.000','7.000','8.000','9.000']"]-['{fruit1.name^Apple!e}',"{'name':'Apple'}"]-['{fruit2_property.common^Banana!e}',"{'common':'Banana','scientific':'Musaacuminata'}"]
Package: codeorigins
https://github.com/idlesign/codeoriginsDescriptionCode origins contest based on GitHub dataCodeOrigins live:http://idlesign.github.io/codeorigins/Find interesting people and projects originating in various countries;See what countries produce most starred projects;Know your impact on community of your favourite language;and more.FAQBut wait, this data is not realtime!Yes, these are static web-pages (seedocs/) compiled from dumped data (seecodeorigins/dump/).
And it sure can be outdated.And what if I want to see updated data?You can dump data you’re interested in and make a pull request.Quick and dirty start:Fork repository;Git pull forked repository into local directory;$ cdto the directory;$ pip install-e.(sudomay be required) -
this will madecodeoriginsCLI available;Use$ codeorigins dump(see below) without--into-
this puts dumps intocodeorigins/dump/;Commit and push added/changed dumps;Create a pull request on your GitHub repository page.My country or language is not listed, what am I to do?Editcodeorigins/settings.py, add all what you need and make a pull request.
You can also make and submit new/updated dumps (see above).CLIcodeoriginscomes with CLI to streamline common actions.Data DumpUsing rate-limited GitHub search API:$codeoriginsdump--into/home/idle/ghdump--countryru--languagePythonapiThis will useapito fetch repositories data for users located inRussiawhose primary language isPythonand dump it into/home/idle/ghdump.Register OAuth Application (https://github.com/settings/developers) and use itsClient IDandClient Secretto loosen the rate limits (append--credentials<id>,<secret>to dump command).HTML ExportUsemake_htmlcommand to read data from dumps and compose HTML:$codeoriginsmake_html--dump_dir/home/idle/ghdumpThis will create HTML file in current working directory.SettingsSee supported countries and languages using the following command:$codeoriginsshow_settingsRequirementsPython 3.6+clickJinja2requests
Package: codeowners
codeownersPython codeowners parser based onsoftprops's Rust
libraryandhmarr's Go
library.Why?To allow Python users to parsecodeowners
filesin Python.InstallpipinstallcodeownersUsagefromcodeownersimportCodeOwnersexample_file="""\# owners for js files*.js    @ghost# python*.py user@example.com# misc/build/logs/ @dmindocs/*  docs@example.com"""owners=CodeOwners(example_file)assertowners.of("test.js")==[('USERNAME','@ghost')]Devpoetryinstall

s/test

s/lintReleasing a New Version# bump version in pyproject.toml# update CHANGELOG.md# commit release commit to GitHub# build and publishpoetrypublish--build# create a release in the GitHub UI