Saravanan666/pypi-org huggingface dataset:
Package: cs.filestate
Facility to track file state.This is used to watch for size or modification time changes,
or to notice when a file path no longer points at the same file.FunctionFileState(path, do_lstat=False, missing_ok=False)Return a signature object for a file state derived from os.stat
(or os.lstat ifdo_lstatis true).pathmay also be an int, in which case os.fstat is used.
This returns an object with mtime, size, dev and ino attributes
and can be compared for equality with other signatures.missing_ok: return None if the target file is missing,
otherwise raise. Default False.
Package: cs.folderishpage
IntroductionFolderish page for Plone to avoid the “default-page” story in Plone.
Dexterity-based successor ofcs.donedukiaChangelog2.0 (2016-09-27)remove grok [Mikel Larreategi <mlarreategi@codesyntax.com>][Mikel Larreategi <mlarreategi@codesyntax.com>][ci skip] [Mikel Larreategi <mlarreategi@codesyntax.com>]1.1.1 (2016-01-29)Fix changelog.
[erral]1.1 (2016-01-29)Add collective.dexterityindexer support
[libargutxi]-1.0 (2013-09-05)Initial release
[erral]
Package: csft
csft - Count Sizes of File TypesA CLI to count sizes of file types in a directory, implemented by Python.InstallInstall from the official PYPI:pip install csftInstall from the latest source:pip install git+https://github.com/yanqd0/csft.gitUsageThe simplest usage:csft PATH/TO/A/DIRECTORYMore Usage:csft -hCLI ResultsSomething like this:$ csft
        type       size
0      .pack  116.11 MB
1        .js   12.64 MB
2      .json    6.68 MB
3       .png    1.89 MB
4      .html    1.57 MB
5       .idx  974.77 KB
6       .css  140.81 KB
7              78.33 KB
8      .gexf   51.33 KB
9    .sample   15.32 KB
10       .md   10.54 KB
11  .LICENSE    1.06 KB
12       .sh  292 bytesUse as a Python module>>> from csft import csft2data
>>> data = csft2data('.')
>>> from pandas import DataFrame, Series
>>> isinstance(data, DataFrame)
True
>>> isinstance(data['size'], Series)
True
>>> isinstance(data['type'], Series)
TrueChangelog for csft0.4.0 (2018-01-15)Rename csft.csft to csft._csftUse humanfriendly to display file sizes by defaultReplace –pretty with –with-rawEnhance test cases0.3.0 (2017-06-16)Expose csft.csft2data functionAdd option –prettyAdd option –top0.2.1 (2017-05-24)Add the version option0.2.0 (2017-05-22)This is the 1st officialreleasein PyPI.Initialize test casesIntegrate in Travis CI0.1.2 (2017-05-16)Drop unused index column0.1.1 (2017-05-16)Fix problems about setup0.1.0 (2017-05-16)Basically usable
Package: csg2csg
csg2csgA tool to translate common Monte Carlo geometry formats between each other.How to useRight now the code is petty rough.Install using pippip3 install csg2csg --userRun from the terminal withcsg2csg -i filename -f formatwhere filename is the input filename and format is the file format of the input file. Options for the file format include several neutronics codes [mcnp, serpent, openmc, phits, fluka] each is at a different level of completeness.The default is to attempt to translate the input file into all neutronics codes but users can specify which codes with the-oflag.To see all the run options typecsg2csg -hin the terminalCaveatsSeveral! Right now only MCNP can be read, and then written to MCNP Serpent and OpenMC.
When the file can be read only a subset of MCNP surfaces can be readMCNP Surfaces SupportedP,PX,PY,PZS SO SX  SY SZCX CY CZ C/X C/Y C/ZSQGQKX, KY, KZTX TY TZMacrobodies - RPP, SPH and RCCX, Y, Z - one and two coefficent onlyMCNP Surfaces Not Yet SupportedX, Y, Z - three coefficientMacrobodies - BOX, RHP, HEX, REC, TRC, ELL, WEB, ARBTranformsAre read and interpretted, but nothing is done with them, in the future codes that support cell transformations will use it, but right now MCNP is the only code that does surface transformations
Package: csgame
csgameuseful tools for pygame developmentinstructionsInstall:pip install csgameInitialise in project:fromcsgameimport*featurescsgame.colourdynamic colours with special featuresBiColour - colour that can swap between 2 coloursBiColourSmooth - BiColour that has a smooth transition when swappingFlashColour - colour that can momentarily flash to another colourcsgame.menuuseful tools for menusButton - interactible button which can be pressed to perform an actionMenu - holds a collection of buttons and is responsible for updating themcsgame.playerprovides basic player movementTopDownPlayer - simple top-down style player movementSideScrollPlayer - simple side scroll player movement with gravitycsgame.cameramanipulates how sprites are drawn as if a camera is looking at themCameraSpriteGroup - sprite group which has a camera tracking a target
Package: csgapi
Computer Systems Genome APIAboutThe Mission of the Computer Systems Genome Project (CSGenome) is to conduct the first scientific effort to catalog the lineage of computer system performance over time to enable knowledge discovery and further understanding of the impact of computing innovations on transformative technologies, the knowledge-based economy, and societal change.This is an API to access our database and request computer system information, ranging from RAM, to processors, and even GPUs.Learn more at our website:https://csgenome.org/Table of ContentsComputer Systems Genome APIAboutGetting Started and TutorialExamplesContributingCreditsGetting Started and TutorialInstall throughpip install csgapiRetrieve the client through the importfrom csgapi import clientConnect the client withcli = client.CSGenome()If you have an auth token that allows you more access:cli = client.CSGenome(auth_token='test123')Accessing a specific table in our databasecli.processorsGetting an entry in a table given UIDcli.processors.get(1000)Retrieving only specific columns of an entrycli.processors.get(uid=1, params={'columns': 'model,uid'})Getting a list of entries and only specific columnscli.processors.list(columns=['model', 'uid'])Request entries that satisfy a filterGet all processors with clock_speed of 2100cli.processors.list(clock_speed=2100)Get all processors within 2100 to 2500 value for clock_speedcli.processors.list(clock_speed=[ge(2100), lt(2500)])Get all processors wih clock_speed greater than 2100cli.processors.list(clock_speed=gt(2100))ge()is used to signify greater than or equal togt()is used to signify greater thanle()is used to signify less than or equal tolt()is used to signify less thanThese functions can be imported fromcsgapi.baseHigher authentication capabilities (Post, Put, Delete)Create entryprocessor_data = {'vdd_high': test}res1 = cli.processor.create(data=processor_data)Update a entry by UIDupdated_data = {'accepted_memory': 'spec2017_test_put'}res = cli.spec2017.update(50, updated_data)Modify a specific entryres = cli.spec2017.get(50)res.accepted_memory = "test_smart_update"res.save()Delete an entry by UIDcli.processors.delete(50)ExamplesUsing the data in our database, you can create meaningful visualizations such as these.ContributingIf you would like to submit a request for a change, email us atcsgenomevtteam@gmail.comCreditsThe CSGenome Project is led by Professors Kirk W. Cameron (PI), Godmar Back (co-PI and Technical Advisor), and Margaret Ellis (co-PI and Team Leader) and an extremely talented and highly diverse group of more than a dozen Virginia Tech undergraduate and graduate students.
Package: cs-generator
Introductionpython script for generating C# files for Newtonsoft.Json deserialization from python enums and annotated classes.Installationfrom pippipinstallcs_generatordownload package and run setup.pypythonsetup.pyinstallUsageAnnotate classes that are to be converted to C#; should be annotated on class level.All used enum types will be converted (no annotation is needed)If reference keeping is used in deserialization, set ref_keeping to TruefromenumimportEnumfromtypingimportListfromcs_generatorimportCSGeneratorclassJob(Enum):Teachert=0Engineer=1Doctor=2classPerson:name:strage:intjob:Jobhobbies:List[str]def__init__(self,name,age,job,hobbies):self.name=nameself.age=ageself.job=jobself.hobbies=hobbiescsg=CSGenerator(Person,ref_keeping=True)csg.export('TestNamespace',dest_folder)# orp=Person('Jack',33,Job.Teacher,['Swimming','Video Games','Fishing'])csg=CSGenerator(p,ref_keeping=True)csg.export('TestNamespace',dest_folder)output cs scriptusingNewtonsoft.Json;namespaceTestNamespace{publicenumJob{Teacher=0,Engineer=1,Doctor=2}}usingSystem.Collections.Generic;usingNewtonsoft.Json;namespaceTestNamesapce{publicpartialclassPerson{publicreadonlystringname;publicreadonlyintage;publicreadonlyJobjob;publicreadonlyIList<string>hobbies;[JsonConstructor]publicPerson(stringname,intage,Jobjob,List<string>hobbies){this.name=name;this.age=age;this.job=job;this.hobbies=hobbies;}}}
Package: c-sghmc
C-SGHMC=======================This is a repository created as part of a statistical computation project at Duke University.The code to be found here is a C++ implementation of SGHMC algorithm wrapped for Python using pybind11. It is further used to verify the results in the original paper on SGHMC: "Stochastic Gradient Hamiltonian Monte Carlo" by Tianqi Chen, Emily B. Fox and Carlos Guestrin.As seen from our project this is a **15-time-efficiency-improvement** in terms of runtime over the pure python version.Main files=======================- **sghmcwrap.cpp** is the original sghmc algo in C++ wrapped for Python- **c_sghmc.py** calls and decorates the above extension and tests on an example from the original paperPackages required to run the code=======================- The implementation makes use of **Eigen** library for C++ and hence run the following line:! git clone https://github.com/RLovelett/eigen.gitMake sure you have it cloned in the same directory as your code.- **pybind11** and **cppimport** are the two standard packages required for wrapping C++ codes for Python and importing them:! pip3 install pybind11! pip3 install cppimportThe example makes use of **sympy** to specify functions (such as potential and kinetic energies as well as the gradient of the former), **numpy** and **numpy.random**.
Package: cs.gimmicks
Gimmicks and hacks to make some of my other modules more robust and
less demanding of others.Latest release 20230331:
New open_append to handle idiotic Linux do-not-open-tty-for-append semantics.Functiondebug(*a, **kw)Wrapper fordebug()which does a deferred import.Functionerror(*a, **kw)Wrapper forerror()which does a deferred import.Functionexception(*a, **kw)Wrapper forexception()which does a deferred import.Functioninfo(*a, **kw)Wrapper forinfo()which does a deferred import.Functionlog(*a, **kw)Wrapper forlog()which does a deferred import.Functionopen_append(path)Ghastly hack to open something for append
entirely because some Linux systems do not let you open a
character device for append.
Tries sane'a'and falls back through 'r+' and finally to
'w' only ifpathrefers to a character device.Functiontrace(*a, **kw)Wrapper forinfo()which does a deferred import.Functionwarning(*a, **kw)Wrapper forwarning()which does a deferred import.Release LogRelease 20230331:
New open_append to handle idiotic Linux do-not-open-tty-for-append semantics.Release 20230212:
Add gimmicks for cs.lex.r and cs.lex.s.Release 20230210:
DEVNULL default open for "r+b" instead of "wb".Release 20221228:
Generalise the logging function map, add trace function, bugfix logging call lookup.Release 20220429:
Add DEVNULL symbol, needed before Python 3.3.Release 20211208:
Define TimeoutError.Release 20210306:
Add simple implementations of nullcontext and SimpleNamespace.Release 20200418.1:
Initial release with logging call stubs.
Package: csgo
Supports Python2.7+and3.3+.Module based onsteamfor interacting with CSGO’s Game Coordinator.Documentation:http://csgo.readthedocs.ioNote that this module should be considered an alpha.Contributions and suggestion are always welcome.InstallationInstall latest version from PYPI:pip install -U csgoInstall the current dev version fromgithub:pip install git+https://github.com/ValvePython/csgo
Package: csgo-cli
CSGO Command Line InterfaceCLI for starting CSGO and joining one of your favorite servers insanely fast.Because why not?Usage>>> csgo servers

  INDEX  NAME                                                                        MAP            PLAYERS    ADDRESS
-------  --------------------------------------------------------------------------  -------------  ---------  -------------------
    0  BrutalCS - RETAKES ★ 02 ★ MAPVOTE ★ 128T                                    de_train       10/10      178.236.67.18:27015
    1  BrutalCS - RETAKES ★ 04 ★ MAPVOTE ★ 128T                                    de_dust2       2/10      178.236.67.33:27015
    2  BrutalCS - RETAKES ★ 11 ★ MAPVOTE ★ 128T                                    de_mirage      4/10      178.236.67.56:27015
    3  BrutalCS - RETAKES ★ 13 ★ MAPVOTE ★ 128T                                    de_nuke        0/10      178.236.67.26:27015'



>>> csgo connect 3

Starting CSGO and joining server   BrutalCS - RETAKES ★ 13 ★ MAPVOTE ★ 128T ...Current installationpip install csgo-cliSetup path to steam user dataSteam stores your favorite servers in a file calledserverbrowser_hist.vdf.For me, this file was located at:/c/Program Files (x86)/Steam/userdata/160616678/7/remote/serverbrowser_hist.vdf".When theserverbrowser_hist.vdfhas been located, run:csgo configure {full_path_to_`serverbrowser_hist.vdf`}Everything should now be set, enjoy!Contribute?Feel free to create issues and PRs!
Package: csgo-demoparser
demoparseris a library for parsing CS:GO demo files.As the file is processed events are emitted for which callbacks can
be registered.Quick startInstall:pip install demoparserParse a demo:>>> from demoparser.demofile import DemoFile
>>> data = open('/path/to/demofile', 'rb').read()
>>> df = DemoFile(data)
>>> df.parse()
Package: csgo-handler
csgo_handlerProgram that detects when CSGO is launched or closed and runs a script.This program only works on Linux as it depends oninotify.ConfigurationThe configuration file location respects XDG, and will try the following paths, in this order:$XDG_CONFIG_HOME/csgo_handler.yaml$XDG_CONFIG_HOME/csgo_handler.yml$XDG_CONFIG_HOME/csgo_handler/csgo_handler.yaml$XDG_CONFIG_HOME/csgo_handler/csgo_handler.yml$XDG_CONFIG_HOME/csgo_handler/config.yaml$XDG_CONFIG_HOME/csgo_handler/config.ymlNOTE:$XDG_CONFIG_HOMEwill default to$HOME/.configon most systems.A lazy match is used, meaning the first file that exists will be used.Example configuration---# Path to the 'csgo.sh' scriptscript_path:/opt/games/steamapps/common/Counter-Strike Global Offensive/csgo.sh# Action to run when game startsstart_script:-/bin/bash--c-nvidia-settings -a 'DigitalVibrance[DFP-5]=1023'# Action to run when game stopsstop_script:-/bin/bash--c-nvidia-settings -a 'DigitalVibrance[DFP-5]=0'Command-line parametersThe following parameters are present:ArgumentShort argumentExplanationDefaultExample--config-cOverride config pathNonecsgo-handler -c /etc/csgo_handler.yaml--config_path-CSearch for config files within this folderNonecsgo-handler -C /etc/csgo_handler--daemon-DRun as a daemonFalsecsgo-handler -D
Package: csgoinvshuffle
csgoinvshuffleDescriptioncsgoinvshuffle is a Python package designed to generate inventory shuffle config files for the game CS:GO.With this package you can easily shuffle between different weapon types (e.g. M4A4 and M4A1-S) and have less limits in customizing the shuffle experience than with the in-game settings.Note:CS:GO never really queues your items in a random order.
The items are arranged in one simple, predefined cycle.
This package aims to creating shuffles to your liking with easeYou can use the config file it creates and replace<path_to_your_steam>/userdata/<your_steam_3id>/730/remote/cfg/csgo_saved_item_shuffles.txtwith it to apply your config.HINT:CS:GO needs to be closed while replacing the fileHow to installpip install csgoinvshuffleBasic usageYour steam inventory needs to be public!Basic shuffle for everything in your inventory with randomnessfromcsgoinvshuffleimportShuffleConfig,get_inventorywithShuffleConfig()assc:sc.add_items(get_inventory("YOUR_STEAM_ID_64"))sc.randomize()Give items a certain order in the cyclefromcsgoinvshuffleimportShuffleConfig,get_inventoryfromcsgoinvshuffle.enumsimportTagsInternalName# This example only works if you have at least 4 music kits in your inventorysc=ShuffleConfig()inv=get_inventory("YOUR_STEAM_ID_64")music_kits=inv.filter(TagsInternalName.MUSIC_KITS)sc.set_item(0,music_kits[3])sc.set_item(1,music_kits[1])sc.save()As you can see in the last example, an inventory is equipped with a filter attribute and can be handled like a list.
You can filter for enums and the filter uses the TagsInternalName by default, as it is the most useful one.
Otherwise using the built-in filter() function on the Inventory Object is suggested.
To get an overview of what values the attributes of an Item can have, you can lookuphttps://steamcommunity.com/inventory/<YOUR_STEAM_ID_64>/730/2
or lookup the typing definitions inside the item class.
As mentioned, typical values for the propertytags_internal_nameare provided by the TagsInternalName enum.Create a shuffle cycle for only one team sidefromcsgoinvshuffleimportShuffleConfig,get_inventoryfromcsgoinvshuffle.enumsimportTagsInternalName,TeamSidewithShuffleConfig()assc:inv=get_inventory("YOUR_STEAM_ID_64")knives=inv.filter(TagsInternalName.KNIVES)classic_knife=knives.filter(TagsInternalName.CLASSIC_KNIFE)[0]karambit=knives.filter(TagsInternalName.KARAMBIT_KNIFE)[0]butterfly=filter(lambdax:x.custom_name=="crypto is for n00bs",knives)[0]# First map karambit, second map classic knife, third map butterfly, next map karambit again...# On T side onlymy_shuffle_cycle=[karambit,classic_knife,butterfly]sc.add_items(my_shuffle_cycle,TeamSide.T)By default, the attribute methods fromShuffleConfigdo everything for both teams.
If you want to have different shuffle cycles on the opposing sides, you have to state it with a parameter.
Package: csgo-menu-maker
csgo-menu-makerComing here from somewhere that isn't GitHub? Check out theQuick-Start Guide!AboutThe Source(TM) engine has a console command system that is extremely powerful when leveraged correctly. I used it to create a system of menus and widgets that allows users to customize their game configuration on-the-fly in terms of things like crosshairs, viewmodels, and HUD looks.csgo-menu-makeruses a versatile configuration language (spoiler alert: it's yml) which lets users with very little to no coding experience create these menus.Over the past month of writing this, I learned a lot about Python,source console scripting,,\ andtracking down bugs that are older than I am.In the process of discovering my own and Valve's bugs, I may have left a few in this project, so don't be too hard on me.UsageHere's a glimpse into the language used to make these menus. For example, to create the demo menu above:tree:
    Crosshairs:
        type: config.crosshairs
        presets:
            General:
                color: [0, 255, 255]
            Pistol Rounds:
                color: [0, 255, 0]
                t_shape: 1
                dot: 1
    Viewmodels:
        type: config.viewmodels
        presets:
            Regular:
                offset: [2.5, 0, -1.5]
                fov: 60
            Gangster:
                offset: [1.5, 2, 2]
                fov: 68
    HUDs:
        type: config.huds
        presets:
            Regular:
                scale: 0.9
            Navigator:
                radar_rotate: 0
                radar_icon_scale: 0.8
    Master Volume: sound.volume.masterFor a better guide, check out theTutorial.InstallingSee theInstallation Guidefor a visual and clear explanation. If you are more technically minded, here are some commands:pip install pyyaml csgo-menu-makerpython -m csgomenumakerHave fun!-- Citrus
Package: csgotm-py
# CS:GO Market API implementationCS:GO Markte API- this module is a Python client library for CS:GO Market (CSGO.TM before) platform API (CS:GO Markte API wrapper)CS:GO Market- one of the largest stores of virtual items from the CS:GOMarket-https://market.csgo.com/API Documentation-https://market.csgo.com/docs-v2# InstallationInstall current version with [PyPi]():`bash pip installcsgotm-py==0.1.0`Or from GitHub:`bash pip installhttps://github.com/wendland0d/csgotm-py/archive/refs/heads/main.zip`
Package: csg-pywaapi
csg_waapiWarning! csg-pywaapi has been renamed pss-pywaapi. The older csg-pywaapi module will no longer be supported, please change your code to use the new pss-pywaapi module.UsageImport the library...
"import csg_pywaapi"Connect to Wwise and get the connection info...
"result = csg_pywaapi.connect()"Default port is 8095, Optionally pass in an alternative port for the connection ...
"result = csg_pywaapi.connect(8080)"Documentation:https://csg-pywaapi.readthedocs.io/
Package: csgrid2unstr
IntroductionThe grid generator is fromhere,
and I/O is handled bymeshio.This package was created for education/research purpose. Personally, I use this
to study the grid convergence for data transferring between CSGrid andspherical centroidal Voronoi tessellations(SCVT).InstallationYou can easily install this package through pip, i.e.$pipinstallcsgrid2unstr--userYou can, of course, install it directly from the repository:$gitclonehttps://github.com/chiao45/csgrid2unstr.git$cdcsgrid2unstr&&pythonsetup.pyinstall--userNotice that this package depends on:numpysetuptoolsmeshioUsageAs Executable BinaryOnce you have installed the package, open the terminal and type:$csgrid2unstr-husage: csgrid2unstr [-h] [-n SIZE] [-o OUTPUT] [-r REFINE]
                [-f {vtk,vtu,gmsh,off,exodus,xdmf,dolfin-xml,stl}] [-b]
                [-V] [-v]

write CSGrid to unstr

optional arguments:
  -h, --help            show this help message and exit
  -n SIZE, --size SIZE  Number of intervals of a square face
  -o OUTPUT, --output OUTPUT
                        Output file name, w/o extension
  -r REFINE, --refine REFINE
                        Level of refinements, default is 1
  -f {vtk,vtu,gmsh,off,exodus,xdmf,dolfin-xml,stl}, --format {vtk,vtu,gmsh,off,exodus,xdmf,dolfin-xml,stl}
                        Output file format, default is VTK
  -b, --binary          Use BINARY. Notice that this flag is ignored for
                        some formats
  -V, --verbose         Verbose output
  -v, --version         Check versionIf you gotcommand not found: csgrid2unstr, make surecsgrid2unstris
in your$PATH.There are two must-provided parameters, i.e.-n(--size) and-o(--output). The former is to define the number of intervals of a square
face, i.e. the number of quadrilaterals of a face is n*n, and the latter is
to provide the output filename (without extension). For instance:$csgrid2unstr-n20-odemowill construct a CSGrid of 400 quadrilaterals per face, convert the grid into
an unstructured mesh and store it indemo.vtk.You can create a serial of uniform refined grids by adding-r(--refine) switch, e.g.:$csgrid2unstr-n10-r3-odemo-fxdmfwill construct three CSGrids with 100, 400, and 1600 quadrilaterals per face,
convert them into three unstructured meshes and store them indemo0.xdmf,demo1.xdmf, anddemo2.xdfm, resp.As ModuleUsingcsgrid2unstras a Python module is also simple.from__future__importprint_functionfromcsgrid2unstr.cubed_sphereimportCSGridfromcsgrid2unstr.unstrimportUnstr# create a CSGrid of 25 quads per facecs=CSGrid(5)# convert it into an unstructured meshmesh=Unstr(cs)# two attributes, points and cells, of np.ndarrayprint('Nodes{}-by-3'.format(len(mesh.points)))print(mesh.points)print('Cells{}-by-4'.format(len(mesh.cells)))print(mesh.cells)LicenseMIT LicenseCopyright (c) 2018 Qiao Chen