Saravanan666/pypi-org huggingface dataset:
Package: copyrightupdate
Parses the given lines and updates the copyright string.Say you have a copyright string in the top of some source file, like:# Copyright (c) 2010 John Doe <john@example.com>If you edit this file, you would like the copyright notice so reflect the
current year as well, like:# Copyright (c) 2010, 2012 John Doe <john@example.com>This script checks for outdated copyright strings and updates them.Ranges are detected and collapsed intelligently. If you have2008, 2009, 2010, it will become2008-2010. If you mix ranges and single years, this
will also be picked up correctly:2002, 2003, 2004, 2006, 2008, 2009, 2012That list becomes:2002-2004, 2006, 2008-2009, 2012In order to prevent changing of copyright notices that do not carry your name,
you can create an INI style configuration file at~/.config/copyright_updater.iniwhich would look like that:[name]name=John Doeemail=john@example.com[unicode]replace=trueAdditionally, it can replace(c)with©automatically, if you set the
option in the config file.
Package: copytext
copytext is a library for accessing a spreadsheet as a native Python object suitable for templating.On the NPR Visuals team we use this as part of our app-template. Whenever a project is rendered we fetch a Google Spreadsheet containing all the project’s editable text. This spreadsheet is passed to copytext, which produces an object suitable for using in our Flask templates. This allows us to give our writers and editors a document to write in which they are more comfortable with than they would be editing the code directly.Repository:https://github.com/nprapps/copytextIssues:https://github.com/nprapps/copytext/issuesDocumentation:http://copytext.readthedocs.org/Visuals blog:http://blog.apps.npr.org/
Package: copytool
copytoolcopytool copies files hell-bent for leatherTested+compiled against Windows 10 / Python 3.10 / AnacondaTeraCopy needs 4 minutes, copytool does it 6 secondsCLICompiled EXE:Example: copytool --src "C:\ProgramData\anaconda3\envs" --dst "e:\envbackup" --use_tqdm 1 --copy_date 1 --copy_permission 0 --overwrite 1
  --src                     str         (source folder)
  --dst                     str         (destination folder)
  --log                     str  ""     (csv log)
  --copy_date               int  0      (copy date stats)
  --copy_permission         int  0      (copy permissions)
  --use_tqdm                int  1      (show progress bar)
  --overwrite               int  1      (overwrite existing files in dst)
  --use_uffs                int  1      (use uffs to get a list of files)Python# pip install copytoolfromcopytoolimportget_all_files_on_hdd_and_copyget_all_files_on_hdd_and_copy(src=r"C:\path",dst=r"e:\dest",log="c:\\copylog.csv",copy_date=0,copy_permission=0,use_tqdm=1,overwrite=1,use_uffs=1)get_all_files_on_hdd_and_copy(src=r"C:\path",dst=r"e:\dest",log="",copy_date=0,copy_permission=0,use_tqdm=1,overwrite=1,use_uffs=0# no logging without uffs)
Package: copytrav
copytravCopying Python TraversalsModern Python packaging has support for data files to be included with the
package alongside source files. There are many times when you might want to
have copies of these files on disk, often when being used with external or
third-party programs, and this is the role copytrav fills. You may, of course,
useimportlib.resources.as_file(traversable),
but there are still other times when a context manager isn't good enough.UsersInstallationpip install copytravUsageCopying a Directoryfrom copytrav import copy

copy("mymodule.data", "path/to_directory", "output_path")Copying a Filefrom copytrav import copy

copy("mymodule.data", "path/to_file", "output_path")Copy the Whole Modulefrom copytrav import copy

copy("mymodule.data", dst="output_path")Copy the Whole Module into a TempDirfrom copytrav import copy

tempdir = copy("mymodule.data")Building the Documentationclone the repositorypip install -e .[dev]

cd docs && make html
Package: copytruncate
COPYTRUNCATE文件另存后清空文件，保持文件inode不变。一般可用于大日志文件的交换等场景。SRC_FILE_PATH：被复制及清空的文件路径（必填）。DST_FILE_PATH：另存为的文件路径（选填），默认为：SRC_FILE_PATH后加年月日时分秒。警告由于“文件另存”和“清空文件”两个操作不是原子操作， 在“另存”和“清空”之间可能会有新插入的数据， 而清空时也会清掉这部分新插入的数据，
导致数据部分丢失。安装pip install copytruncate命令帮助信息E:\copytruncate>copytruncate --help
    Usage: copytruncate [OPTIONS] SRC_FILE_PATH [DST_FILE_PATH]

    文件另存后清空文件，保持文件inode不变。一般可用于大日志文件的交换等场景。

    SRC_FILE_PATH：被复制及清空的文件路径（必填）。
    DST_FILE_PATH：另存为的文件路径（选填），默认为：SRC_FILE_PATH后加年月日时分秒。

    警告：

    由于“文件另存”和“清空文件”两个操作不是原子操作， 在“另存”和“清空”之间可能会有新插入的数据， 而清空时也会清掉这部分新插入的数据，
    导致数据部分丢失。

    Options:
    -v, --verbose  Show how many bytes copied.
    --help         Show this message and exit.使用案例将a.txt内容复制到a.txt.backup文件中，并清空a.txt的内容。保持a.txt的inode不变，已经打开a.txt进行写入操作的程序，也不需要重新打开a.txt。copytruncate a.txt a.txt.backup将a.txt内容复制到a.txt.20190613092823文件（20190613092823时命令执行时的时间，这里只是用于举例）中，并清空a.txt的内容。保持a.txt的inode不变，已经打开a.txt进行写入操作的程序，也不需要重新打开a.txt。copytruncate a.txt
Package: copyusb
Copy connected USB media device to current script directory.
The copy() method will return a list with the path where the USB drive being copied.DO NOT MISUSE IT FOR STEALING DATA.The current version can be used only with Python 3. Tested on Windows(10) and Ubuntu(16.04 LTS).To install (in Ubuntu having both Python2 and Python3 by default):>>> sudo pip3 install copyusbTo install (in Windows with which has only Python 3 installed):>>> sudo pip install copyusbTo use (with caution), simply do:>>> import copyusb
>>> copy_result_list = copyusb.copy()This will return a list with the destination path where the USB media device data has been copied.
No matter how many USB media device is connected, this program will copy all of them.
Package: copy-windows-10-lock-screen-wallpaper
Copy Windows 10 Lock Screen WallpaperCopy Windows 10 current lock screen wallpaper to destination directory.Table of ContentsRequirementInstallationInstalling from PyPIInstalling from GitUsageLicenseRequirementMicrosoft Windows 10Python 3.6+InstallationInstalling from PyPIpip3installcopy-windows-10-lock-screen-wallpaperInstalling from GitClone this repositoryRunpython3 setup.py install.Usagecopy-lock-screen-wallpaper[--destination{destination_directory}]Examplecopy-lock-screen-wallpapercopy-lock-screen-wallpaper--destinationC:\License(C) 2019 Seehait Chockthanyawat.Copy Windows 10 Lock Screen Wallpaperis licensed underMIT License
Package: coq-config
Coq-configSimple script to set up a Coq project dependencies usingopam.
Inspired by Haskell'sstack.DocumentationReadscoq_config.yamlfile and set up amopamswitchand install
required packages.Optionally checks out some sub-projects fromgit(an alternative
to using sub-modules).NotesIt is safe to run multiple times.Theopampackages where the version numer was specified, will be
pinned, so it is safe to doopam updateaftewards.You will need to activate opam switch specified in config withopam switchcommand. The script does not change current active
switch for you.Tested withopamverson 2.0.5.To-DoRunopam initif necessaryIf switch exists, check if the right compiler is used and
update if necessary.When adding repositories, check their URLs, not just names.
It they do not match the config - report error.Runcoq-configfor allextra-depsWhen re-running, make sure pinned version removed or updated
if changed.InstallationThe easiets way to install is usingpip:pip install coq-configManual installTo run from local clone of git repository install dependencies (usingpip):clickpyyamlcerberusContactFor bugs reports, contributions and source code visitproject page on
github.
Package: coq-tools
coq-toolsSome scripts to help manipulate Coq developmentscoq-bug-minimizerSome scripts to help construct small reproducing examples of bugs.The scriptfind-bug.pyis the main program; runfind-bug.py -hto
see the options.  The script will ask you two questions: whether or
not it successfully determined the error you're seeking to reproduce,
and whether or not it created a regular expression which captures that
error.  After that, it will run without user input until it finishes.UsageStandard usage is to invoke with the buggy file name and the output
(minimized) file name:python find-bug.py BUGGY_FILE.v OUTPUT_FILE.vYou can add-vfor a more verbose output.If you are using a non-system version of Coq, you can pass--coqtop /path/to/coqtopand--coqc /path/to/coqc.  If you pass-R . Footo, say,coq_makefile, you can informfind-bug.pyof this fact
using-R . Foo.ExamplesThere is an example in the examples directory.  You can runrun-example-01.shto see how the program works.  You can pass this
script the arguments-v,-vv, or-vvvfor different levels of
verbosity.  Look at the contents ofrun-example-01.shto see how to
invoke the program.Known BugsNote that this program can fail in mysterious ways when run using
Windows Python 2.7 under cygwin; it seems that buffering and stdin and
stderr and Popen are screwed up.  To work around this, there is a
coqtop.bat file which is chosen as the default coqtop program.
Somehow running via a .bat file makes things work.  You will probably
have to use a similar wrapper if you use a custom coqtop executable.Additionally, quirks in module name resolution can result in inlining
failures (seehttps://github.com/JasonGross/coq-tools/issues/16), and
global side effects ofRequirecan also result in failures (seehttps://github.com/JasonGross/coq-tools/issues/41).PublicationsJason Gross, Théo Zimmermann, Miraya Poddar-Agrawal, and Adam Chlipala. Automatic test-case reduction in proof assistants: A case study in Coq. ITP 2022Jason Gross. Coq Bug Minimizer, CoqPL 2015minimize-requiresThe scriptminimize-requires.pycan be used to remove unneededRequirestatements.  Runminimize-requires.py -hto see the options.UsageStandard usage is to runminimize-requires.py some-file1.v some-file2.v ... --in-place .bakor, if you want to minimize an entire project,minimize-requires.py --all -f _CoqProject(you can add--in-place .bakif you want to save backup files)proof-using-helperThe scriptproof-using-helper.pyis the main program; runproof-using-helper.py -hto see the options.UsageStandard usage is to invoke with the any-Rarguments passed to Coq,
and either pipe the output ofmake quickwithGlobal Set Suggest Proof Usingon, to this script, or to give it a file containing said output.make quick -j -k | tee -a proof_using.log
python /path/to/proof-using-helper.py proof_using.logYou can add-vfor a more verbose output.
Package: coquery
Coquery is a free corpus query tool for linguists, lexicographers,
translators, and anybody who wishes to search and analyse text corpora.
It is available for Windows, Linux, and Mac OS X computers.You can either build your own corpus from a collection of text files (either
PDF, MS Word, OpenDocument, HTML, or plain text) in a directory on your
computer, or install a corpus module for one of the supported corpora (the
corpus data files are not provided by Coquery).Coquery: Main interfaceTutorials and documentation can be found on the Coquery website:http://www.coquery.orgFeaturesAn incomplete list of the things you can do with Coquery:CorporaUse the corpus manager to install one of the supported corporaBuild your own corpus from PDF, HTML, .docx, .odt, or plain text filesFilter your query for example by year, genre, or speaker genderChoose which corpus features will be included in your query resultsView every token that matches your query within its contextQueriesMatch tokens by orthography, phonetic transcription, lemma, or gloss,
and restrict your query by part-of-speechUse string functions e.g. to test if a token contains a letter
sequenceUse the same query syntax for all installed corporaAutomate queries by reading them from an input fileSave query results from speech corpora as Praat TextGridsAnalysisSummarize the query results as frequency tables or contingency tablesCalculate entropies and relative frequenciesFetch collocations, and calculate association statistics like mutual
information scores or conditional probabilitiesVisualizationsUse bar charts, heat maps, or bubble charts to visualize frequency
distributionsIllustrate diachronic changes by using time series plotsShow the distribution of tokens within a corpus in a barcode or a
beeswarm plotDatabasesEither connect to easy-to-use internal databases, or to powerful
MySQL serversAccess large databases on a MySQL server over the networkCreate links between tables from different corpora, e.g. to provide
phonetic transcriptions for tokens in an unannotated corpusSupported corporaCoquery already has installers for the following linguistic corpora and
lexical databases:British National Corpus (BNC)Brown CorpusBuckeye CorpusBrown CorpusCELEX Lexical Database (English)Carnegie Mellon Pronunciation Dictionary (CMUdict)Corpus of Contemporary American English (COCA)Corpus of Historical American English (COHA)Ġabra: an open lexicon for MalteseICE-NigeriaSwitchboard-1 Telephone Speech CorpusIf the list is missing a corpus that you want to see supported in Coquery,
you can either write your own corpus installer in Python using the installer
API, or you can [contact](http://www.coquery.org/contact) the Coquery
maintainers and ask them for assistance.LicenseCopyright (c) 2016 Gero KunterInitial development was supported by:English Linguistics
Institut für Amerikanistik und Amerikanistik
Heinrich-Heine-Universität DüsseldorfCoquery is free software released under the terms of theGNU General Public license (version 3)
Package: coqui
Coqui CLI🐸CLI lets you use our services programmatically.DocumentationUsage documentation available atcoqui-py.readthedocs.io.Development$python-mpipinstallflit# Below, -s means editable mode, symlinked. Using it lets you edit the code and# test changes without having to reinstall the package.$python-mflitinstall-s
$coqui--help
$coquilogin--help
$# etc
Package: coqui-stt-model-manager
Coqui STT Model manager🐸STT Model Manager is a tool for installing and trying out Coqui STT models from theCoqui Model Zoo.UsageDependencies:Python >= 3.7 (On Raspberry Pi, only Python 3.7 is supported)$pipinstallcoqui_stt_model_manager
$stt-model-managerOn Raspberry Pi:$pipinstallhttps://github.com/coqui-ai/STT/releases/download/v1.3.0/stt-1.3.0-cp37-cp37m-linux_armv7l.whl
$pipinstallcoqui_stt_model_manager
$stt-model-managerBuild and install from sourceBuild dependencies:Node.JSYarnPython >=3.7Up-to-date pip/setuptools/wheel packages$# Create and activate virtualenv:$python-mvenv/tmp/venv
$/tmp/venv/bin/activate
$# Update Python packaging tools:$python-mpipinstall-Upipsetuptoolswheel
$# Install package$makeinstallDevelopment installation (editable, with pre-commit hooks)SeeCONTRIBUTING.Running in development mode (watching file changes and rebuilding automatically)The following command will watch the React-based front-end files for changes and rebuild automatically:$yarnwatchThen, in a separate terminal window run the following to start the Python server in debug mode:$# Create and activate virtualenv:$python-mvenv/tmp/venv
$/tmp/venv/bin/activate
$# Start server in debug mode with automatic server reloads:$stt-model-manager--debugFor now you have to reload the browser manually. We'd gladly welcome a PR adding auto-refresh functionality :)Build Python package (sdist/wheel)$makepackage
$lldist/
$pipinstalldist/*.whl
Package: coqui-trainer
👟 TrainerAn opinionated general purpose model trainer on PyTorch with a simple code base.InstallationFrom Github:git clone https://github.com/coqui-ai/Trainercd Trainermake installFrom PyPI:pip install coqui-trainerPrefer installing from Github as it is more stable.Implementing a modelSubclass and overload the functions in theTrainerModel()Training a modelSee the test scriptheretraining a basic MNIST model.Training with DDP$python-mtrainer.distribute--scriptpath/to/your/train.py--gpus"0,1"We don't use.spawn()to initiate multi-gpu training since it causes certain limitations.Everything must the pickable..spawn()trains the model in subprocesses and the model in the main process is not updated.DataLoader with N processes gets really slow when the N is large.Supported Experiment LoggersTensorboard- actively maintainedClearML- actively maintainedMLFlowAimWandDBTo add a new logger, you must subclassBaseDashboardLoggerand overload its functions.
Package: coral
Documentation available athttp://coral.readthedocs.org.Coral is a library for encoding the process of designing synthetic DNA
constructs. Coral mirrors the traditional design steps used in GUI-based
sequence design (ApE, j5, Benchling, etc.) as operations on data structures,
enables iterative design through analysis modules, and connects seamlessly to
outside libraries. Through the use of Coral, you can translate your DNA design
processes into concise, executable, and reusable scripts.Coral encodes synthetic DNA design rules into its core sequence data types
(DNA, RNA, and Peptide), enabling concise, dependable methods for automated
DNA design.Coral works with PyPy so long as a PyPy-compatible numpy is installed.
Package: coral-decimal-mask
Coral Decimal MaskWidgets que aplicam mascaras nos forms do django.Instalaçãopython-mpipinstallcoral-decimal-maskComo usarAdicionedecimal_maskemINSTALLED_APPS:INSTALLED_APPS=[..."decimal_mask",]Configure seus widgets:fromdjangoimportformsfromdecimal_mask.widgetsimportDecimalMaskWidget,MoneyMaskWidget,PercentMaskWidgetclassMyForm(forms.Form):value1=forms.DecimalField(widget=DecimalMaskWidget())value2=forms.DecimalField(widget=DecimalMaskWidget(decimal_attrs={"locales":"pt-BR","decimalPlaces":2,"format":{"style":"currency","currency":"BRL",},},),)# ou usar forms.DecimalField(widget=MoneyMaskWidget())value3=forms.DecimalField(widget=PercentMaskWidget())O parâmetrodecimal_attrssão algumas opções para construir o objeto javascriptIntl.NumberFormat.localesé o primeiro parâmetro deIntl.NumberFormatreferente a linguagem utilizada na interface do usuário da sua aplicação.decimalPlacesé o número de casas decimais que a mascara vai considerar.formaté umdictcom as informações do parâmetrooptionsdeIntl.NumberFormat.Contribuindo com o projeto(venv)poetryinstall(venv)pytest
Package: coral-formsets
coral-formsetsExtensão para manipular o frontend usando DjangoFormSets.Não tem dependência com outro framework/biblioteca javascript.DocumentationInstallationPara instalar coral-formsets:pipinstallcoral-formsetsAdicionecoral_formsetsemINSTALLED_APPS:INSTALLED_APPS=[# other apps"coral_formsets",]UsageNo seu html adicione ojscomo no exemplo abaixo.Nesse exeployourapp/form.htmlé um arquivo referente ao template do seu form, isso garante mais clareza ao seu código:<!-- yourapp/form.html --><divdata-form><divstyle="display: none">{{ form.DELETE }}{{ form.id }}</div>{{ form.as_p }}<buttondata-delete>delete form</button></div><!-- yourapp/view.html -->{% load static coral_formset_tags %}<!DOCTYPE html><html><body><divdata-formset>{% render_empty_form_template 'yourapp/form.html' formset as empty_form %}

    {{ formset.management_form }}<divdata-body>{% for form in formset %}
        {% include 'yourapp/form.html' with form=form %}
      {% endfor %}</div><buttonclass="formset"data-empty-form="{{ empty_form }}"data-prefix="{{ formset.prefix }}">Add form</button></div><scriptsrc="{% static 'coral_formsets/js/FormSet.js' %}"></script><script>document.querySelectorAll('.formset').forEach(el=>{newwindow.coral.FormSet(el);});</script></body></html>A templatetagrender_empty_form_templateirá transformar o seuformset.empty_formem texto, para depois fazer a inserção do novo form via javascript.
Package: coralillo
A redis ORM.NotesVersion 1.0 depends on redis >= 3.0.Installation$pipinstallcoralilloUsagefromcoralilloimportEngine,Model,fields# Create the engineeng=Engine()# Declare your modelsclassUser(Model):name=fields.Text()last_name=fields.Text()email=fields.Text(index=True,regex='^[\w.%+-]+@[\w.-]+\.[a-zA-Z]{2,}$',)classMeta:engine=eng# Persist objects to databasejohn=User(name='John',last_name='Doe',email='john@example.com',).save()# Query by indexmary=User.get_by('email','mary@example.com')# Retrieve all objectsusers=User.all()
Package: coralinedb
Coraline Database Manager PackageNow, only MSSQL and MySQL DB are supported-How to use-Initial database object by specify host, username and passwordfrom coralinedb import MySQLDBsql_db = MySQLDB(host, username, password)Load a table or multiple tablesnew_table = sql_db.load_table(“database_name”, “table_name”)ortable1, table2 = sql_db.load_tables(“database_name”, [“table_name1”, “table_name2”])Save a dataframe to a tablesql_db.save_table(df, “database_name”, “table_name”)Get number of rows of a tablen_rows = sql_db.get_count(“database_name”, “table_name”)Run other SQL statement on host (with or without database name)table = sql_db.query(“show databases;”)table = sql_db.query(“SELECT * FROM …”, “database_name”)Run store procedure on host (with or without database name)affected_row = db.call_procedure(“CALL store_procedure”)
dataframe = db.call_procedure(“CALL store_procedure”, return_df=True)
Package: corallium
coralliumShared functionality for the calcipy-ecosystem.Installationpoetry add coralliumTake advantage of the logger or other common functionalityformcorallium.logimportlogger

logger.info('Hello!')UsageFor more example code, see thescriptsdirectory or thetests.Project StatusSee theOpen Issuesand/or theCODE_TAG_SUMMARY. For release history, see theCHANGELOG.ContributingWe welcome pull requests! For your pull request to be accepted smoothly, we suggest that you first open a GitHub issue to discuss your idea. For resources on getting started with the code base, see the below documentation:DEVELOPER_GUIDESTYLE_GUIDECode of ConductWe follow theContributor Covenant Code of Conduct.Open Source StatusWe try to reasonably meet most aspects of the "OpenSSF scorecard" fromOpen Source InsightsResponsible DisclosureIf you have any security issue to report, please contact the project maintainers privately. You can reach us atdev.act.kyle@gmail.com.LicenseLICENSE
Package: coralmc
CoralMCAboutAPythonmodule that allows you to interact with theCoralMCAPI.WarningCoralMC's API is still in alpha and isn't documented. In the future an access token is going to be required. At the current state, it isn't recommended for production usage as it could stop working at any point.Installationpython-mpipinstallcoralmcExample usageGet basic player info:importcoralmcimportasyncioasyncdefmain():try:playerInfo=awaitcoralmc.getPlayerInfo("Feryzz")ifplayerInfo:print(playerInfo)else:print("Player not found!")exceptExceptionaserror:print(f"Error:{error}")asyncio.run(main())Get player stats:importcoralmcimportasyncioasyncdefmain():try:playerStats=awaitcoralmc.getPlayerStats("Feryzz")ifplayerStats:print(playerStats["kitpvp"])print(playerStats["bedwars"])else:print("Player not found!")exceptExceptionaserror:print(f"Error:{error}")asyncio.run(main())