Saravanan666/pypi-org huggingface dataset:
Package: charc_math
# charc_mathThis started out as a private collection of maths functions, many will be quite simple. Over time I've got quite a few, and I thought it should be shared. Nothing is too complicated - I hope.__tl;dr__ Maths functions.## Code Example```Pythonimport charc_math as cprint c.primes(10):#Output [2, 3, 5, 7]```Each function comes with a suffiecient docstring, including what arguments it takes and what it returns.## MotivationEach function here has at some point been written and used by me to solve various maths problems, from ProjectEuler, to PythonChallenge, to my own recreational maths work.## Installation```Bashsudo pip install charc_math``````Pythonimport charc_math# as you normally would...```## TestsEach one has gone through a decent amount of testing before finally being put into this proper collection. If you find any bugs contact me at the email provided and I'll look into it.```Pythondef test_primes():assert_equal(primes(100),[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97])assert_equal(primes(2),[2])assert_equal(primes(-10),[])assert_equal(primes(1),[])```## ContributorsSo far just me. I'd like to thank any of my friends who will have without a doubt readover at least one of these files just to make sure it has no typos or anything else stupid.## LicenseMIT.__Basically__ I don't care what you do with the code so long as you:- [ ] don't ~~try to pass it off as your own~~ _(lol, I know just how basic it is.)_- [x] give me credit##TODO- [ ] Finish porting all of this from everywhere into one place- [ ] Work on more common maths functions- [ ] Speed - _not the drug or the film_- [x] Sort out the README page- [ ] ???Contact me if you want to add more things to that list.#### Known BugsEach bug I find is with the function, but still a general list for those unwilling to read (including me)- isAP is ~~not very numerically accurate~~ better now.- isGP is not at all numerically accurate, this needs lots of work and fixing
Package: charcoal
A simple library for sendingStatsD metricsin python. It aims to provide a high level API for the user, however that also means that much of the lower level functionality found in most other StatsD clients are not exposed, frankly because I do not find that I need it. So no manually timing things and etc.Installing$pipinstallcharcoalUse it like so:importcharcoalmy_client=charcoal.StatsClient(prefix,host,port)For development, the client also provides adisabledkwarg, so you do not have change anything in the code when you want to not send stats:my_client=charcoal.StatsClient(prefix,host,port,disabled=True)By itself, the client does not provide much use, but it does provide easy ways to get specific sub-clients, such as timers, counters, etc.Timingtimer=my_client.timer('my-timer-name').start()this_takes_a_while()timer.intermediate('first-pass')this_takes_a_while()timer.intermediate('second-pass')timer.stop()When you have end up with a measurement from somewhere else, perhaps from an external service, you can also send that, using the.sendfunction on the timer class, in fact this is what the higler level functions above use, behind the scenes.timer=my_client.timer('my-timer-name')timer.send('db-call',12.5)Countingcounter=my_client.counter('my-counter-name')counter.increment('some-value',10)counter.decrement('some-other-value',10)The counter can even be fed a dict like object, such as the Counter from the standard library and send the stats as a single message.pre_counted={'a-name':5,'another-name':10,}counter.from_mapping(pre_counted)GaugesFor setting the current value.gauge=my_client.gauge('my-gauge')gauge.set('a-name',10)gauge.update('a-name',10)SetsFor counting unique events, such as unique users on a page.visitors=my_client.set('visitors')visitors.add('ids',user.id)CustomIn case the server you are using supports more metric types than this library, you can send custom metrics:metric_to_send='metric.name:{value}|{type_suffix}'.format(value=str(value),type_suffix=type_suffix,)my_client.send(metric_to_send)Theprefixgiven to the client when creating it, is then prepended to the metric name, encoded, and sent to the server.Currently it can even accept multiple metrics in one go:my_client.send(metric_to_send,other_metric_to_send)
Package: char-collection
CharCollectionWith this module you can easily generate a sequence from 1 to 75 characters, including special characters(!@#$%^&*()_=+[]{};:"\|,).This is a stand-alone module, from dependencies , only built-in random module (for now).There is also a class forgenerating a passwordfrom characters from 6 to 20, including special characters.Simple use case:from char_collection.collect import CharacterSequence

collect = CharacterSequence()
collect.collect(10) # Q#,PT^$o&W (random string)Or you can generate a password like this:from char_collection.collect_password import CollectPassword
generator = CollectPassword()
generator.collect(8) # B|Gd";;bYou can also use the CollectPasswordNotSpecialSymbol class, which will generate a password without special charactersfrom char_collection.collect_password import CollectPasswordNotSpecialSymbol
generator_not_special_symbol = CollectPasswordNotSpecialSymbol()
generator_not_special_symbol.collect(8) # L3nAIormYou can use the password generator, for example, in a telegram bot by connecting this module with the bot.
Password must be at least 6 and no more than 20 characters.
If the length is false, returns None.
Package: char-converter
Chinese Character Variant Converter,an open-source library for converting Chinese character variants to standard simplified or traditional characters.*If you're curious about our name and logo: 'CHAR' comes from 'Chinese character variant' and also refers to a type of beautiful fish with a gradient of red color (Arctic Char).Installpip install char-converterUsageConvert textMode: one2onefrom char_converter import CharConverter

text = '苟馀情其訫姱㠯练要兮，镸顑頷亦何伤。'

converter = CharConverter('v2t')
converted_text = converter.convert(text)
# 苟餘情其信姱以練要兮，長顑頷亦何傷。

converter = CharConverter('v2s')
converted_text = converter.convert(text)
# 苟余情其信姱以练要兮，长顑颔亦何伤。Mode: one2manyfrom char_converter import CharConverter

text = '鈡𩄇毓秀'

converter = CharConverter('v2t')
converter.set_mode('one2many')
converted_text = converter.convert(text)
# 【鍾|鐘】靈毓秀Convert filefrom char_converter import CharConverter

converter = CharConverter('v2s')
converter.convert_file(input_file, output_file)Data sourceCBDB ProjectOpenCCDictionary of Variant Chinese CharactersGeneral Standard Chinese Characters TableData filteringContributorsYuqi Chen(data collection and programming)Hongsu Wang(project manager)Yiyi Wang(proofreading),Fengyi Ji(data collection)
Package: char-counter
Char CounterChar Counter is a command line tool that counts the number of unique characters in a text file or an input string.InstallationClone the repository:gitclone<git@git.foxminded.ua:foxstudent102513/task-5-create-the-python-package.git>Navigate to the project directory:cd<task-5-create-the-python-package>Install the project using pip:pipinstall.UsageChar Counter can be used with two arguments:--stringand--file.To count unique characters in a string, use the--stringargument:python-mchar_counter--string"Your text here"To count unique characters in a text file, use the--fileargument:python-mchar_counter--file/path/to/your/file.txtNote: Running without parameters will result in the following message: "Please provide either --string or --file parameter.".AuthorUladzimir Radchanka -Uradchanka@gmail.comLicenseThis project is licensed under the MIT License.
Package: char-counter-vp
Character CounterThis Python application allows you to count the number of unique characters in a provided string or a text file.UsageRunning the ApplicationNavigate to thesrcdirectory and run thecommand_line.pyscript with the desired options:python -m command_line.py --string "your_string_here"orpython -m command_line.py --file /path/to/your/text_file.txtFunction Detailscount_unique_chars(string=None, file_path=None)Count the number of unique characters in the input string.Parameters:string(str): The string in which to count unique characters.file_path(str): The path to the input text file.Returns:int: The count of unique characters in the input string.Raises:TypeError: If the input is not a string.AuthorVolodymyr Perehuda
Package: chard
chard=====[![Build Status](https://travis-ci.org/uniphil/chard.png?branch=master)](https://travis-ci.org/uniphil/chard)Rebel. or stupid.-----------------_** I meant "and". "and stupid"._I like making a mess with mongodb. I made[kale](https://github.com/Calama/kale) because I hate declaring schemas. Butnow I have to collaborate with a designer. me: "So you'll be passed in a `user`instance--" designer: **"oh, what properties do `user`s have?"**.So... I'm basically defining my user schema in my `user` creation form. godthat's ugly. Um. and not very discoverable. hmm...Instead of being sensible and finally admitting that maybe having schemas insome discoverable place is actually an awesome idea, I resisted and came upwith **chard**.Discover the schema by inspecting the actual documents. chard tries to help youdo that.Oh, and I came up with a slogan: _look at your mess_.or maybe, _stay in denial about schemas being a great thing a little longer!_.Install-------what you're still here.ok.. `pip install chard`.Usage-----blah blah blah
Package: chardb
This is really early-access. For now, only take the subversion / dev
installs. You can get it athttp://svn.arlim.org/chardb_net/TgImpl/#egg=chardb-dev.Really, it’s only up here so that I can easily move it between my boxes and install it in a
virtualenv. If you want to use it, I recommend usinghttp://svn.arlim.org/chardb_net/TgImpl/devel.pyto
install it into a virtualenv.
Package: chardet
Chardet: The Universal Character Encoding DetectorDetectsASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants)Big5, GB2312, EUC-TW, HZ-GB-2312, ISO-2022-CN (Traditional and Simplified Chinese)EUC-JP, SHIFT_JIS, CP932, ISO-2022-JP (Japanese)EUC-KR, ISO-2022-KR, Johab (Korean)KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic)ISO-8859-5, windows-1251 (Bulgarian)ISO-8859-1, windows-1252, MacRoman (Western European languages)ISO-8859-7, windows-1253 (Greek)ISO-8859-8, windows-1255 (Visual and Logical Hebrew)TIS-620 (Thai)NoteOur ISO-8859-2 and windows-1250 (Hungarian) probers have been temporarily
disabled until we can retrain the models.Requires Python 3.7+.InstallationInstall fromPyPI:pip install chardetDocumentationFor users, docs are now available athttps://chardet.readthedocs.io/.Command-line Toolchardet comes with a command-line script which reports on the encodings of one
or more files:% chardetect somefile someotherfile
somefile: windows-1252 with confidence 0.5
someotherfile: ascii with confidence 1.0AboutThis is a continuation of Mark Pilgrim’s excellent original chardet port from C, andIan Cordasco’scharadePython 3-compatible fork.maintainer:Dan Blanchard
Package: chardet2
DetectsASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants)Big5, GB2312, EUC-TW, HZ-GB-2312, ISO-2022-CN (Traditional and Simplified Chinese)EUC-JP, SHIFT_JIS, ISO-2022-JP (Japanese)EUC-KR, ISO-2022-KR (Korean)KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic)ISO-8859-2, windows-1250 (Hungarian)ISO-8859-5, windows-1251 (Bulgarian)windows-1252 (English)ISO-8859-7, windows-1253 (Greek)ISO-8859-8, windows-1255 (Visual and Logical Hebrew)TIS-620 (Thai)Requires Python 3 or laterCommandline interfacechardet2 <filename>
Package: chardetng-py
chardetng_pyFeaturesPython binding for thechardetngcharacter encoding detector.DocumentationDocumentation for the latest release can be found onRead the Docs.Platform and Architecture SupportCompatability is afeatureofchardetng_py. The goal is to support as many platforms and architectures as possible.chardetng_pysupports Python 3.8, 3.9, 3.10, 3.11, and 3.12 on Linux, macOS 10.7, macOS 11.0, and Windows. Additionally, PyPy versions 3.8, 3.9, and 3.10 are supported on Linux.The x86, x86_64, s390x, ARMv7l, and AArch64 architectures are supported on Linux for both cPython and PyPy. The AArch64 and x86_64 architectures are supported on macOS. The x86_64 architecture is supported on Windows.In short, if you can install Python 3.8, you should be able to installchardetng_py.If there is a platform or architecture that you would like to see supported, pleasefile an issue.This support is largely due to the wonderfulmaturinproject.InstallationYou can installchardetng_pyviapipfromPyPI:$pipinstallchardetng-pyOr via poetry:$poetryaddchardetng-pyQuick StartThe easiest way to get started is to use the :meth:detectmethod.>>>fromchardetng_pyimportdetect>>>detect(b'Jakby r\xeaka Boga')'windows-1254'There is also adetectmethod available for compatability withchardet,
but it will always reportNonefor the language and a confidence value of0.99.>>>fromchardetng_py.compatimportdetect>>>detect(b'Jakby r\xeaka Boga'){'encoding':'windows-1254','confidence':0.99,'language':None}ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,chardetng_pyis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.Credits
Package: chardif
Print per-character string diffs to terminal w/ Python.Done usingwasabi, and based on agistbyines(which is also the writer ofwasabi). And in “based” I mean it’s just that gist in a package form.ContentsInstallationUseContributingInstalling for developmentRunning the testsAdding documentationCreditsInstallationInstallchardifwith:pipinstallchardifUseJust a single function, folks:fromchardifimportchardifimportdatetimechardif("rabbits","grab it")ContributingPackage author and current maintainer is Shay Palachy (shay.palachy@gmail.com); You are more than welcome to approach him for help. Contributions are very welcomed.Installing for developmentClone:gitclonegit@github.com:shaypal5/chardif.gitInstall in development mode with test dependencies:cdchardifpipinstall-e".[test]"Running the testsTo run the tests, call thepytestcommand in the repository’s root, or:python-mpytestAdding documentationThis project is documented using thenumpy docstring conventions, which were chosen as they are perhaps the most widely-spread conventions that are both supported by common tools such as Sphinx and result in human-readable docstrings (in my personal opinion, of course). When documenting code you add to this project, please followthese conventions.CreditsDone usingwasabi, and based on agistbyines(which is also the writer ofwasabi). And in “based” I mean it’s just that gist in a package form.Created by Shay Palachy (shay.palachy@gmail.com).
Package: chardiff
# CharDiffTake 2 strings as arguments and show the difference between them## Installationpip3 install chardiff## Usagepython3 -m chardiff “string1” “string2” –color red## LicenseCopyright (C) 2019  Matt Copperwaite <matt@copperwaite.net>This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
Package: chardiff-html
chardiff_htmlPython package for visualizing char diff by colorized htmlInstallpip install chardiff_htmlUsageThis package outputs HTML string displays char diffs, so you can use this on Jupyter notebook orStreamlitJupyter Exmaplefromchardiff_htmlimportchardiff_jupyterchardiff_jupyter('hoge','hag')Streamlit Exampleimportstreamlitasstfromchardiff_htmlimportchardiff_html"### Input"str1=st.text_area("Original Sentence","hoge")str2=st.text_area("New Sentence","hag")diff=chardiff_html(str1,str2)# >>> print(diff)# 'h<span style="color: red; background-color: mistyrose">o</span><span style="color: green; background-color: #e0ffe5">a</span>g<span style="color: red; background-color: mistyrose">e</span>'"### Diffs"st.markdown(diff,unsafe_allow_html=True,)
Package: charentais
Bravo!  You have received a Medical Diploma in "charentais" fromthe Orbital Convergence University International Air and Water Embassy of the Tangerine Planet.You are now officially certified to include "charentais" in your practice.🌑 🌘 🌗 🌖 🌕 🌔 🌓 🌒 🌑🌑 🌒 🌓 🌔 🌕 🌖 🌗 🌘 🌑🌑 🌘 🌗 🌖 🌕 🌔 🌓 🌒 🌑charentaisTo give a taste of dry land tothose who approach the shores,there is now foundthe dream and rise of the ocean tides.🍈 descriptionThis is a module that can ascertainthe health status of python3 software.It's like a testing framework.🛸 installThis utilizes:https://pypi.org/project/xonsh[xonsh] pip install charentais🌌 documentation[xonsh] charentais sharesThis opens a server process that can be opened in a browser.🛟 internal status tests of the module[xonsh] charentais internal-statusThese checks are run with pypi "body_scan""charentais" is built from a fork of "body_scan"("body_scan" checks are written with "unittest")🌠 TutorialThe structure📁 performance
	📜 status_1.pyThe checks# status_1.py

def check_1 ():
	print ("check 1")
	
def check_2 ():
	print ("check 2")
	
def check_3 ():
	raise Exception ("not 110%")

checks = {
	"check 1": check_1,
	"check 2": check_2,
	"check 3": check_3
}The procedureFrom theperformancedirectory,[xonsh] charentais statusThe reportThis is the report that is (hopefully) written to the terminal.paths: [
	{
		"path": "status_1.py",
		"empty": false,
		"parsed": true,
		"stats": {
			"passes": 2,
			"alarms": 1
		},
		"checks": [
			{
				"check": "check 1",
				"passed": true,
				"elapsed": [
					4.054199962411076e-05,
					"seconds"
				]
			},
			{
				"check": "check 2",
				"passed": true,
				"elapsed": [
					1.72930003827787e-05,
					"seconds"
				]
			},
			{
				"check": "check 3",
				"passed": false,
				"exception": "Exception('not 110%')",
				"exception trace": [
					"Traceback (most recent call last):",
					"  File \"/charentais/processes/scan/process/keg/check.py\", line 68, in start",
					"    checks [ check ] ()",
					"  File \"<string>\", line 13, in check_3",
					"Exception: not 110%"
				]
			}
		]
	}
]
alarms: [
	{
		"path": "status_1.py",
		"checks": [
			{
				"check": "check 3",
				"passed": false,
				"exception": "Exception('not 110%')",
				"exception trace": [
					"Traceback (most recent call last):",
					"  File \"/charentais/processes/scan/process/keg/check.py\", line 68, in start",
					"    checks [ check ] ()",
					"  File \"<string>\", line 13, in check_3",
					"Exception: not 110%"
				]
			}
		]
	}
]
stats: {
	"alarms": 0,
	"empty": 0,
	"checks": {
		"passes": 2,
		"alarms": 1
	}
}NotesChecks are started simultaneously, unless--simultaneous no[xonsh] charentais status --simultaneous noThe fractory glob pattern is "**/status_*.py", but can be changed with--glob-string[xonsh] charentais status --glob-string "**/performance_*.py"🪹 Advanced TutorialIt's recommended to run charentais programmatilly.An example of this can be found in the "_book/advanced tutorial"section of the documentation.📡 Contactsbgrace2345@pm.me
Package: char-featurizer
char_featurizerchar_featurizer是一个汉字字符特征提取工具，他可以提取汉字的字音（包括声母、韵母、声调）、字形（偏旁、部首）、四角符号等信息。
同时可以将这些特征信息转换为tensor，作为模型的输入特征。这个项目是在安德森大佬的字符提取工具的基础上做了优化整合目前char_featurizer支持的功能有：1、字形特征提取2、字音特征提取3、四角编码提取4、tensor转换二、安装使用1、安装pipinstallchar_featurizer2、使用1、字符特征提取fromchar_featurizerimportFeaturizerfeaturizer=Featurizer()data='明天去你家玩'result=featurizer.featurize(data)print(result)2、作为特征输入模型3、相关资源1、汉字四角号码在线查询工具三、Update News2020.5.4  完成V1版本四、Resources
Package: charfreq
charfreqGet the frequency of characters in your files!
Outputs JSON with character countsInstallpip3installcharfreqExample usagecharfreq--only"[()]"./**/*.pyThis outputs the following JSON{"(":83281,")":83286}More random examples# Have a look at the options availablecharfreq--help# Check a filecharfreqscript.py# Check many filescharfreqscript.pytest.pyapi.js# Test all py files recursively using glob (only tested on bash shell)charfreq./**/*.py# Use multiple globs! (only tested on bash shell)charfreq./**/*.py./**/*.html# Exclude characters based on regexcharfreq--exclude"[a-zA-Z]"./**/*.py# Only capture characters based on regexcharfreq--only"[a-zA-Z]"./**/*.py
Package: chargeamps
Charge Amps API bindings for PythonThis repository contains a Python module for the Charge Amps' electric vehicle charging stations.The module is developed byKirei ABand is not supported byCharge Amps AB.External API KeyYou need an API key to use the Charge Amps external API. ContactCharge Amps Supportfor extensive API documentation and API key.ReferencesCharge Amps External REST API
Package: chargehound
Installationpip install chargehoundUsageImport chargehound and set your API key.importchargehoundchargehound.api_key='{ YOUR_API_KEY }'RequestsEvery resource is accessed via the Chargehound module.dispute=chargehound.Disputes.submit('dp_123',fields={'customer_name':'Susie'})ResponseResponses from the API are automatically parsed from JSON and returned
as Python objects.Responses also include the HTTP status code on the response object as
the status field.dispute=chargehound.Disputes.retrieve('dp_123')printdispute.state# 'needs_response'printdispute.response.status# 200DocumentationDisputesErrorsDevelopmentTo build and install from the latest source:$gitclonegit@github.com:chargehound/chargehound-python.git$pipinstall-rdev_requirements.txtRun tests:$pythonsetup.pytestDeploymentIf you added a new depency, make sure the change is reflected in therequirements.txtfile (for unit tests), thedev_requirements.txtfile (for module publishers) and thesetup.pyfile (for module
consumers).To deploy a new version of the SDK, you will need Pandoc
(http://pandoc.org/) installed. Pandoc will convert the README.md into
the .rst format required for the Python repository. Instructions are
here:http://pandoc.org/installing.html.Next, install PyPandoc, the Python wrapper for Pandoc, followingthese
instructions.The last pre-requisite isTwine, a utility for
interacting with PyPi.Once Pandoc, PyPandoc and Twine are installed, you can build and deploy
a new module to PyPi with the following steps:Update the CHANGELOG to describe what feature have been added.Bump the version number inchargehound/version.pyandsetup.pyRebuild and deploy the package with:python setup.py sdistUpload the distributable to PyPi using:twine uploaddist/{name_of_generated_package}Confirm the new package version is available athttps://pypi.python.org/pypi/chargehound
Package: charge-power
charge-powerA small utility to track power consumed or provided to the device battery.InstallationOne can install the module viapipx:pipx install charge-powerpipx install git+https://github.com/kanootoko/charge-power.gitWork principalsBy default, searches for battery directory in/sys/class/power_supply. Usescharge_nowandcharge_fullfiles to get current and max chagre level.Then the measurements are taken fromcharge_nowfile by timer by given delay time. Difference between
is the amount of energy consumed/provided to the battery, and it is displayed to the console (and log file if it
is set).
Package: chargesats
Charge SatsA very simple Python library to add Pay-Per-View technology to a Flask endpoint.Here's a quick example of how to use it. Note that it assumes the CLN node is running on/within reach of the Flask server.from flask import Flask
from chargesats import Charger


app = Flask(__name__)


# Init the charger!
lnrpc = '/home/runner/.lightning/regtest/lightning-rpc'
Charger.init(lnrpc, 'secret do not share')


@app.route('/')
# Use the charger to charge some sats for an endpoint!
@Charger.charge(amount="100sat")
def index():
    return 'This cost you 100 sats\\n'


app.run(host='0.0.0.0', port=81)Pending TasksUses runes as tokens for repeat callsAdd ability to use commandoAuthors@niftynei (niftynei@gmail.com) is the responsible party.