Saravanan666/pypi-org huggingface dataset:
Package: cste-helloworld
Hello World CSTEThis is an example project demonstrating how to publish a python module to PyPI.InstallationRun the following to install:pipinstallcste-helloworldUsagefromcstehelloworldimportsay_hello# Generate "Hello, World CSTE!"say_hello()# Generate "Hello, Antony CSTE!"say_hello("Antony")TestsThis is for installing all necesary packeges for testingpip3install-e.[dev]pipinstall-e.\[dev\]
Package: cstenv
cstenv.py
cstenv means: custom env lang.loading a filecstenv.load_file(NAME)defining variableslet $varname$ = “hello world!”
let $int$ = 1loading variables valuescstenv.var[“YOURVARNAMEHEREwith no dollar signs.”]===========CHANGELOG============0.0.1 [1/12/2021]Official release of cstenv.
Package: cs.testutils
Hacks to assist with testing.Latest release 20230109:@product_test decorator for running test matrices.SetupTeardownMixin providing unittest setUp/tearDown from setupTeardown context manager method.Functionproduct_test(*da, **dkw)Decorator for test methods which should run subTests
against the Cartesian products fromparams.A specific TestCase would define its own decorator
and apply it throughout the suite.
Here is an example from cs.vt.datadir_tests:def multitest(test_method):
return product_test(
test_method,
datadirclass=[DataDir, RawDataDir],
indexclass=[
indexclass_by_name(indexname)
for indexname in sorted(indexclass_names())
],
hashclass=[
HASHCLASS_BY_NAME[hashname]
for hashname in sorted(HASHCLASS_BY_NAME.keys())
],
)whose test suite then just decorates each method with@multitest:@multitest
def test000IndexEntry(self):
    ....Note that because there must be setup and teardown for each product,
the TestCase class may well have emptysetUpandtearDownmethods
and instead is expected to provide:product_setup(self,**params):
a setup method taking keyword arguments for each productproduct_teardown(self):
the corresponding testdown method
There are called around eachsubTest.ClassSetupTeardownMixinA mixin to support a singlesetupTeardown()context manager method.Release LogRelease 20230109:@product_test decorator for running test matrices.SetupTeardownMixin providing unittest setUp/tearDown from setupTeardown context manager method.
Package: cs.timeutils
Convenience routines for timing.Latest release 20211208:
Move the TimeoutError definiton to cs.gimmicks.FunctionISOtime(gmtime)Produce an ISO8601 timestamp string from a UNIX time.Functionsleep(delay)time.sleep() sometimes sleeps significantly less that requested.
This function calls time.sleep() until at leastdelayseconds have
elapsed, trying to be precise.Functiontime_from_ISO(isodate, islocaltime=False)Parse an ISO8601 date string and return seconds since the epoch.
If islocaltime is true convert using localtime(tm) otherwise use
gmtime(tm).Functiontime_func(func, *args, **kw)Run the supplied function and arguments.
Return a the elapsed time in seconds and the function's own return value.Functiontm_from_ISO(isodate)Parse an ISO8601 date string and return a struct_time.Release LogRelease 20211208:
Move the TimeoutError definiton to cs.gimmicks.Release 20190220:
Backport for older Pythons.Release 20190101:
Define TimeoutError only if missing.Release 20170608:
Trivial changes, nothing semantic.Release 20150116:
PyPI initial prep.
Package: cs.togglecanonical
Sometimes the edit form of translated content items is completely unusable
due to the two-50%-width-column hardcoded in the template.But having in the same page the canonical content and the translated one
is a very nice feature.With this product a new action will appear in a LinguaPlone enabled
content-types in a multilingual site to allow users to show and hide canonical
content on-demand using a Javascipt actionChangelog1.1 (2013-10-15)Upgrade step from old versions
[erral]Fix Javascript action
[erral]1.0 - (2009)Initial release
Package: cstow
CstowAboutThere's lots ofdotfiles managers,
but my favorite isGNU Stow.It has only two problems: boring UI and no config. Cstow solves them.NameConstantine's GNU Stowwrapper.SomeGNU Stow TerminologyA target directory is the root of a tree in which one or more packages wish to appear to be installed.A stow directory is the root of a tree containing separate packages in private subtrees.InstallationUsepipxpipx install cstowOr pippip install cstowConfigurationSetCSTOW_CONFIG_PATHtopath/to/your/cstow_config.toml.
Use any file name you want.ExamplesMycstow.toml.Moreexamples.Config ContentsCstow expands~and$AN_ENVIRONMENT_VARIABLE.NameTypeDescriptionDefaultroot_dirStringThe root of stow directories/cmd_templateStringThe template for GNU Stow commandsSee belowtargets_dirsTableTargets (keys) and dirs (values)targets_dirs (key)StringA target directorytargets_dirs (value)Array of stringsStow directories for the targetroot_dirYou might set it to~/dotfilesor$DOTFILES.If you don't setroot_dir, use absolute paths intargets_dirs.cmd_templateYou can set it to any shell command,
but every variable must be used at least once.Cstow escapes variables so don't even try shell-injecting yourself!VariablesVariableDescriptionactionA GNU Stow action (no, stow, restow, delete)targetA target directorydirA stow directoryDefaultstow --$action --no-folding --verbose --target=$target --dir=$dir . \
     2>&1 | grep --invert-match --regexp="^BUG" --regexp="^WARN"Usage# Get some help
cstow -h
cstow --help

# Run an action
cstow               # Default action is 'no'
cstow no            # Action is a positional argument
cstow -a no         # But flags also work
cstow --action no

# Print plain text
cstow stow -p
cstow restow --plain
cstow -p -a delete
Package: cstream
cstreamC/C++ Style Colorful output stream for Python with level control and thread/process safety options.Installation$pipinstallcstreamIntroductionDefaultstderr,stdwarandstdloginstances are directed to standard error output. Note thatstdoutis also available.Thedevnullstram is intended to be used as a context manager in order to supress output directed tostderrandstdout.Verbosity level control is coherent with theloggingmodule and its constants are made available form importing.ExamplesfromcstreamimportCStream,stderr,stdout,stdlog,stdwar,devnull,WARNING# Set debug levelCStream.config(level=WARNING)# Will be printedstderr<<"Error: You are 'redly' wrong"# Gets printed alsostdwar<<"Warning: Just a 'yellowish' warning..."# Bypassedstdlog<<"DEBUG: Some blue text printed to stderr"# Suppress all output written to stdout and stderrwithdevnull:print("Bye World?")Threads and MultiprocessingfromcstreamimportCStream# For usage within threadsCStream.config(lock_type=CStream.T_LOCK)# For multiprocessingCStream.config(lock_type=CStream.P_LOCK)# When no lock is needed (Default)CStream.config(lock_type=None)Next steps:Completeloggingintegration.Thread-safe logging.
Package: csttodate
1、模块介绍本模块是为了实现CST数据格式转化为DATE类型而写的。转换示例：Tue Nov 14 09:35:17 CST 2023转化为2023-12-14 09:35:17代码调用示例：import csttodate#读取path路径的excel，并完成col列数据转换。excel仅支持xlsx格式，需要使用openpyxl模块。read_excel(path,col,save_path)res=cst_to_date(cstdate)
Package: cstyle
Use c-style braces instead of indentation. This is an encoding, you can also import this module in sites.py, it will register the encoding on import.to use this, add the magic encoding comment to your source file:# coding: cstyleThen you can import it to run it. or if you added the encoding to your sites.py, you can use idle to view the decoded file.
Use notepad++ or the editor of your choice.
Do not use this. DO NOT USE THIS. and do not use this. this works, but this is not a good idea.Currently just works for “if|elif|else|for|while|def|with” statements. do not mix indentation and braces. you can do that, but it is not recommended.
Treat this module just as a toy, or if you have any special purpose to use it. This program is open source, lgpl, you can edit or use it for free.One usage for this module can be reducing source code size (compressing).You can also decode cstyle literals:import cstyle
    a = b'cstyle code'
    a.decode('cstyle')To know how to code with cstyle examine the examples provided here. This is not an alpha release, this is not a beta release, this is not a release at all. this is not a real program, at least at this point. use for educational purposes or whatever. There’s no warranty. There might be parsing errors, it is tested on the code provided in the examples here.What this can do?This will convert:if(1 in {1,2,3}){
    print(5)
    for(x in c){
        print(c)
    }
}To this:if(1 in {1,2,3}):
    print(5)
    for x in c:
        print(c)it works for messy code too. see how this can work on this long oneline code:import time;while(1){while(3){break}if(999>x){time.sleep(1);if(2){print("This is a BAD idea.");print("Or a good one?");print("For me, this is just for fun.");print("C-Style Coding");if(1){def xyz(a,b,c){"""this is a stupid function""";print("if(2){print(\\"hi\\")}");if(a>b){return c}elif(a>c){return b}else{return a}}}with(open("file") as f){pass}}}if(1 in {1,2,3}){print(5);for(x in c){print(c)}}}The result from the previous is:import time
while(1):
    while(3):
        break
    if(999>x):
        time.sleep(1)
        if(2):
            print("This is a BAD idea.")
            print("Or a good one?")
            print("For me, this is just for fun.")
            print("C-Style Coding")
            if(1):
                def xyz(a,b,c):
                    """this is a stupid function"""
                    print("if(2){print(\"hi\")}")
                    if(a>b):
                        return c
                    elif(a>c):
                        return b
                    else:
                        return a
            with open("file") as f:
                pass
    if(1 in {1,2,3}):
        print(5)
        for x in c:
            print(c)Project InfoGithub project page:https://github.com/pooya-eghbali/cstyleMail me at: persian.writer [at] Gmail.com
Package: cstypo
Balíček pro zkrášlení českých textů aplikováním základních typografických
pravidel. Nesnaží se o pokrytí veškerých českých pravidel, spíše o aplikaci
základních a to hlavně těch, které jsou na webu nejvíce vidět.Pozor!Aplikování typografických pravidel na delší texty je poměrně výpočetně
náročná operace. Zvažte kešování těchto textů.Instalacepip install cstypoAPIcstypo.parser.TxtParserVýchozí třída pro zpracování textu. Použití:parser = cstypo.parser.TxtParser(text)
print parser.parser()       # zformátovaný textJe možné využít samostatně jednotlivé metody aplikující určitá pravidla:cstypo.parser.TxtParser.parse_ellipsiscstypo.parser.TxtParser.parse_en_dashcstypo.parser.TxtParser.parse_em_dashcstypo.parser.TxtParser.parse_datescstypo.parser.TxtParser.parse_arrowscstypo.parser.TxtParser.parse_plusminuscstypo.parser.TxtParser.parse_dimensioncstypo.parser.TxtParser.parse_quotescstypo.parser.TxtParser.parse_prepositionscstypo.parser.TxtParser.parse_last_short_wordcstypo.parser.HtmlParserPotomek třídyTxtParser, který nejdříve escapuje veškeré HTML tagy,
aplikuje typografická pravidla na získaný text a vratí tagy zpět.DjangoPro použití ve frameworku Django je připraven filtr typify v souborucstags.Nejdříve je potřebacstypopřidat doINSTALLED_APPSINSTALLED_APPS = (
    ...
    'cstypo',
)Poté je možné začít v šablonách používat filtr.{% load cstags %}

{{ text|typify }}                # zpracování obyčejného textu (výchozí)
{{ text|typify:'txt' }}          # ...

{{ text|typify:'html' }}         # zpracování html
{{ text|typify:'html'|safe }}    # pro povolení vypsání je potřeba filter safeCLIcstypo

Usage:
    cstypo [--type (txt|html)] <input>
    cstypo -h | --help
    cstypo -v | --version

Options:
    -h --help               show this screen.
    -v --version            show version.
    --type                  type of parsed file (txt default).
Package: csuayyy
CSUAyyyOne command to launch a jupyter notebook server on CSUA!No more opening multiple terminals, typing in long ssh commands and copying over port numbers.
This simple command will ssh into CSUA, start a headless jupyter session and connect the session to your local machine.Its 4x faster than doing it manually!Installationpip install csuayyyTutorialAll commands start with eithercsuayyyorcsuafor short.Sign up for aCSUA accountRuncsuayyy configwhen first setting up, and provide the username, password and the path to the id_rsa.pub file you downloaded when signing upRuncsuayyy serveto start a jupyter session and connect to it locallyNoteCSUA is Berkeley's student-run high-performance computing cluster, perfect for training machine learning modelsor mining cryptocurrency.
However, it should be simple to run on other server setups!This project is currentlly only tested on Mac OS 12.1. Other operating systems and configurations are currently untested.Feel free to drop an issue if you need help setting up for a non-CSUA server, or CSUA is not working for your system.
Package: csuffixtree
IntroductionThis is a Suffix Tree data structure lib implemented in C++, wrapped with python.Expect for contructing the tree, this lib also provides to construct the query tree for speeding up querying strings.Install and BuildInstall from Pypirunpip install csuffixtreeBuildYou can build this either on linux or windows.Install Python PackageBuild SuffixTreePyBinding solution in WindowsOn linux you should go tolinuxdirectory, and runmake pythonunder SuffixTreePy directory. runpython setup.py installHow to useYou can construct a suffix tree in the following way.from suffixtree import *
tree = SuffixTree(True,["abc","123","321"])
tree.addStrings(["xyz","abcd"])
print(tree.findString("1"))
print(tree.findString("a"))If you finished inserting strings to a suffix tree, and you want the querying be very fast
you can do:# convert tree to query tree, this release a part of memory
qtree = tree.createQueryTree()
qtree.cacheNodes() # take some time to cache intermediate nodes
qtree.findString("a")For simplicity you can also write# do not preserve string
qtree = SuffixQueryTree(False,["abc","abcd","123","321"])
idx = qtree.findStringIdx("abc") # you cannot use findString now
print(idx)SerializationSuffixQueryTree can be serialized and deserialized to/from a file a bytes object.
For example:# do not preserve string
qtree = SuffixQueryTree(False,["abc","abcd","123","321"])
idx = qtree.findStringIdx("abc") # you cannot use findString now
print(idx)
Package: csui-git-wrapper
csui-git-wrapperWraps Git commands for submission. Similiar tosubmit50(https://github.com/cs50/submit50.git), but this is much simpler and cross-platform.
Intended for specific Fasilkom UI usage.
This package is intended to use with Python 3.6 or newer.InstallationTo install this package, run:python-mpipinstallcsui-git-wrapperUsageTo submit your work:csuisubmitsubmitWhen you are submitting for the first time, you will be asked for your full name, your student number (NPM), your UI or GitLab CSUI account, your course's short name (without any spaces or punctuations), and your working directory (where you put your tutorials/assignments).
After that, in every submission, you will be required to put a message. The message usually defined by your lecturer on the assignment problem set.To get your latest work from other computer:csuisubmitpullNeed to reconfigure?You can reconfigure yourcsuisubmitby using this command:csuisubmitconfigureThen, you will be asked for things just like the first time you are usingcsui-git-wrapper.Changelog0.0.1: Initial version.0.0.2: Add option to pull latest work available from remote repository.0.0.3: Add Git configuration step to accomodate users with Git installed for the first time.
Package: csum
csumIntroductioncsumis a CLI program which allows you to to verify checksums. The goal ofcsumis to minimise the effort required when you download a file and want to verify the checksum.csumsupports the most common checksum algorithms:MD5SHA256SHA512SHA1In addition, it supportsSHA3_512,SHA224,BLAKE2S,SHA3_224,SHA3_256,SHA3_384,SHA384andBLAKE2B.RequirementsYou need to have Python 3.6 or higher installed. This will allow you to installcsumwith Python's package manager,pip.How to installTo installcsumwithpip, run the command:pipinstallcsumAfter this command completes, thecsumexecutable should be available on the PATH.Quick startcsumis designed to be as simple to use as possible. For this reason, you don't need to specify the checksum type (e.g.sha256);csumwill iterate through the most common types first.Usage examplesFile and checksumYou can callcsumwith a filename and checksum:csumfile.zip40f66f20b1ecb05cb11a9627520aafafbc8cd86b33eb8019cbea9925d8ca83ce2Or a checksum and filename:csum40f66f20b1ecb05cb11a9627520aafafbc8cd86b33eb8019cbea9925d8ca83ce2file.zipAbsolute or relative paths, and paths including tilde (~), are accepted:csum~/Downloads/file.zip40f66f20b1ecb05cb11a9627520aafafbc8cd86b33eb8019cbea9925d8ca83ce2Preformatted checksum/filenameSometimes you are provided with a checksum of the form:40f66f20b1ecb05cb11a9627520aafafbc8cd86b33eb8019cbea9925d8ca83ce2  file.zipAssuming that the file is in the current working directory, you can simply copy this text and paste it after thecsumcommand:csum40f66f20b1ecb05cb11a9627520aafafbc8cd86b33eb8019cbea9925d8ca83ce2file.zipIf you prefer, you can supply it as a single argument:csum"40f66f20b1ecb05cb11a9627520aafafbc8cd86b33eb8019cbea9925d8ca83ce2  file.zip"Tip: The number of spaces between the checksum and filename doesn't matter in either case.Manually choosing an algorithmIf you prefer to select a certain algorithm instead of iterating through them, you can use the-a/--algorithmparameter.For example, using the SHA256 algorithm only:csum-asha256file.zip40f66f20b1ecb05cb11a9627520aafafbc8cd86b33eb8019cbea9925d8ca83ce2Tip:You can provide the algorithm name as either lower-case or upper-case, e.g.sha256orSHA256.Expected outputWhen you usecsum, a positive response will be of the form:--------------------------------------------------------------------------------File:file.zipAlgorithm:SHA256Expectedchecksum:40f66f20b1ecb05cb11a9627520aafafbc8cd86b33eb8019cbea9925d8ca83ce2Calculatedchecksum:40f66f20b1ecb05cb11a9627520aafafbc8cd86b33eb8019cbea9925d8ca83ce2Checksumsmatch✔--------------------------------------------------------------------------------

SUCCESS:SHA256checksummatchedfile.A negative response will be of the form:--------------------------------------------------------------------------------File:file.zipExpectedchecksum:40f66f20b1ecb05cb11a9627520aafafbc8cd86b33eb8019cbea9925d8ca83ce2ChecksumsdoNOTmatch.--------------------------------------------------------------------------------

FAILED:algorithm(s)didnotmatchthechecksum.LicenseYou may freely use, modify and redistribute this program under the terms of the MIT License. SeeLICENSE.
Package: csumb205-multimedia
Simple Multimedia ClassesThis project offers students access to simple Python classes that allow for the
manipulation of different multimedia types.Currently, the only ones developed are:simpleImagergbImage
rgbPixelThe other modules installed are currently in developed. This includes:simpleAudio
simpleVideoDocumentationDocumentation, and installation instructions, are available athttp://pwalker91.github.io/CSUMB205_MultimediaContributorsPeter Walkerhttps://github.com/pwalker91
Package: c-sum-py
python的c扩展学习将c文件编译成dll库gcc -shared -o c_sum.dll c_sum.c出现错误OSError: [WinError 193] %1 is not a valid Win32 application, 原因是64位的python无法直接调用32位的dll, 下载64位的MinGW64替代32位的(或者用python 32)
Package: csup-analyzer
CSUP AnalyzerWhatReads replay files (the .header files) from the gameCircuit Superstarsand offers tools to analyze the extracted data.The replay files hold information about (for quali and race respectively):lap timesfastest lap timestime penalties per lap (no slow down penalties)metres drivennumber of laps drivennumber of laps ledtotal race timetrack name and layoutdriver cardriver/car color codesif driver is an AIdriver namedriver platformBesides reading them out of the files in a well-structured way and serving them via a pandas DataFrame (very popular in python data analysis) it also calculates more variables out of those provided:time until starting line (basically the time until you start lap 1)race start positionrace finish positionrace positions by lapWhoThis is a community project kicked-off by Dremet but everyone is welcome to contribute and use the code, see Licence at the bottom.WhenThis project was launched at the end of June 2023 when the version 1.5.0 of the game was released because the .header replay files did not hold that much valuable information before.WhyThe purpose of this libary is to analyze race data. There is currently no API you can request race data/statistics from and also there is no in-game race history/statistics functionality.Another reason for this project is that the initial author, Dremet, is administrating the community websitehttps://www.csup.app/which offers league administration, standings calculations, an elo list, driver statistics etc. Until the 1.5.0 patch there was no way to automatically enter race results into the database behind the website. Extracting data from the .header files is the first step to (semi-) automize result entry. The plan is to launch a CSUP.APP discord bot that offers a/enter_results {race_id} {header_files}command for organizers to enter results easily. That bot would use this library to extract the data from the replay files.HowAfter each race you can find a .header file for each session (e.g. one for qualification and one for the race) in a folder. Assuming your main drive is named"C:"as well you only need to replace "WINDOWS_USER" and "SOME_USER_ID" in the follow folder path to find the replay files on your computer:C:\Users\WINDOWS_USER\AppData\LocalLow\Square Enix Ltd\circuit-superstars\SOME_USER_ID\race-recordingsIf you just want to use the library, simply install it like any other library withpip install csup_analyzerorpdm add csup_analyzer.If you want to develop/contribute and you use pdm for your python environments you should be able to easily set up the environment with the pyproject.toml file (pdm install). Otherwise arequirements.txtfile is provided.Afterwards you can adapt the file paths inrun.pyto test it and have fun with the modified pandas DataFrame accessible viaevent.result_df.ContributeYou are very welcome to work on this project and create pull requests! Feel free to contact me (Dremet) on Discord. You'll find me on (almost) all CSUP discord servers.If you want to add calculations please have a look atcsup_analyzer/event/Result.py.If you want to add visualization support please go tocsup_analyzer/plots/Plots.py.License
Package: csu-radartools
Python tools for polarimetric radar retrievals.To access, use the following in your analysis code:from csu_radartools import (csu_fhc, csu_kdp, csu_dsd, csu_liquid_ice_mass, csu_misc,csu_blended_rain, fundamentals)Works on Windows, but you'll need to install a C++ compiler (e.g. MSVC >=2015).