Saravanan666/pypi-org huggingface dataset:
Package: hexbytes
HexBytesPythonbytessubclass that decodes hex, with a readable console outputRead more in thedocumentation on ReadTheDocs.View the change log.Quickstartpythom-mpipinstallhexbytes# convert from bytes to a prettier representation at the console>>>HexBytes(b"\x03\x08wf\xbfh\xe7\x86q\xd1\xeaCj\xe0\x87\xdat\xa1'a\xda\xc0\x01\x1a\x9e\xdd\xc4\x90\x0b\xf1;")HexBytes('0x03087766bf68e78671d1ea436ae087da74a12761dac020011a9eddc4900bf13b')# HexBytes accepts the hex string representation as well, ignoring case and 0x prefixes>>>hb=HexBytes('03087766BF68E78671D1EA436AE087DA74A12761DAC020011A9EDDC4900BF13B')HexBytes('0x03087766bf68e78671d1ea436ae087da74a12761dac020011a9eddc4900bf13b')# get the first byte:>>>hb[0]3# show how many bytes are in the value>>>len(hb)32# cast back to the basic `bytes` type>>>bytes(hb)b"\x03\x08wf\xbfh\xe7\x86q\xd1\xeaCj\xe0\x87\xdat\xa1'a\xda\xc0\x01\x1a\x9e\xdd\xc4\x90\x0b\xf1;"Developer SetupIf you would like to hack on hexbytes, please check out theSnake Charmers
Tactical Manualfor information on how we do:TestingPull RequestsDocumentationWe usepre-committo maintain consistent code style. Once
installed, it will run automatically with every commit. You can also run it manually
withmake lint. If you need to make a commit that skips thepre-commitchecks, you
can do so withgit commit --no-verify.Development Environment SetupYou can set up your dev environment with:gitclonegit@github.com:carver/hexbytes.gitcdhexbytes
virtualenv-ppython3venv
.venv/bin/activate
python-mpipinstall-e".[dev]"pre-commitinstallRelease setupTo release a new version:makereleasebump=$$VERSION_PART_TO_BUMP$$How to bumpversionThe version format for this repo is{major}.{minor}.{patch}for stable, and{major}.{minor}.{patch}-{stage}.{devnum}for unstable (stagecan be alpha or beta).To issue the next version in line, specify which part to bump,
likemake release bump=minorormake release bump=devnum. This is typically done from the
master branch, except when releasing a beta (in which case the beta is released from master,
and the previous stable branch is released from said branch).If you are in a beta version,make release bump=stagewill switch to a stable.To issue an unstable version when the current version is stable, specify the
new version explicitly, likemake release bump="--new-version 4.0.0-alpha.1 devnum"
Package: hexcover
HexcoverA utility package which calculates a regular hexagonal tiling for an area, given a centroid as a ShapelyPoint, and a side length.InstallationHexcoveris available on PyPI:pip install hexcoverUsagefromshapely.geometryimportPointfromhexcover.utilimporthexagon_coverage# centroidc=Point(0.0,0.0)coverage=hexagon_coverage(c,10)# coverage is a namedtuple of seven polygons. The first entry is the central polygon.# Subsequent entries begin directly above the central polygon, and proceed clockwise.The returnednamedtuplehas seven fields:centretoptoprightbottomrightbottombottomlefttopleftExamplesThere's an examplenotebook, and a sample outputGeoJSON fileshowing the result of covering theCrystal Palace Transmitting Stationwith 100-metre hexagons.Input CoordinatesAprojectedcoordinate system must be used. Don't give input in e.g. WGS84RequirementsShapely>= 1.6.3LicenseThe Blue Oak Model License 1.0DOI
Package: hexdoc-hexcasting
hexdoc-hexcastingPython web book docgen andhexdocplugin for Hex Casting.Version schemeWe usehatch-gradle-versionto generate the version number based on whichever mod version the docgen was built with.The version is in this format:mod-version.python-version.mod-pre.python-dev.python-postFor example:Mod version:0.11.1-7Python package version:1.0.dev0Full version:0.11.1.1.0rc7.dev0Setuppython3.11-mvenvvenv

.\venv\Scripts\activate# Windows.venv/bin/activate.fish# fishsourcevenv/bin/activate# everything else# run from the repo root, not doc/pipinstall-e.[dev]UsageFor local testing, create a file called.envin the repo root following this template:GITHUB_REPOSITORY=gamma-delta/HexModGITHUB_SHA=mainGITHUB_PAGES_URL=https://gamma-delta.github.io/HexModUseful commands:# show helphexdoc-h# render and serve the web book in watch modenodemon--configdoc/nodemon.json# render and serve the web bookhexdocserve# export, render, and merge the web bookhexdocexporthexdocrender
hexdocmerge# start the Python interpreter with some extra local variableshexdocrepl
Package: hexdoc-hexdim
hexdoc-hexdimPython web book docgen andhexdocplugin for Hexxy Dimensions.Version schemeWe usehatch-gradle-versionto generate the version number based on whichever mod version the docgen was built with.The version is in this format:mod-version.python-version.mod-pre.python-dev.python-postFor example:Mod version:0.11.1-7Python package version:1.0.dev0Full version:0.11.1.1.0rc7.dev0Setuppython3.11-mvenvvenv

.\venv\Scripts\activate# Windows.venv/bin/activate.fish# fishsourcevenv/bin/activate# everything else# run from the repo root, not doc/pipinstall-e.[dev]UsageFor local testing, create a file called.envin the repo root following this template:GITHUB_REPOSITORY=walksanatora/hexxy-dimensionsGITHUB_SHA=mainGITHUB_PAGES_URL=https://walksanatora.github.io/hexxy-dimensions/Useful commands:# show helphexdoc-h# render and serve the web book in watch modenodemon--configdoc/nodemon.json# render and serve the web bookhexdocserve# export, render, and merge the web bookhexdocexporthexdocrender
hexdocmerge# start the Python interpreter with some extra local variableshexdocrepl
Package: hexdoc-hexkeys
hexdoc-hexkeysPython web book docgen andhexdocplugin for Hex Keys.Version schemeWe usehatch-gradle-versionto generate the version number based on whichever mod version the docgen was built with.The version is in this format:mod-version.python-version.mod-pre.python-dev.python-postFor example:Mod version:0.11.1-7Python package version:1.0.dev0Full version:0.11.1.1.0rc7.dev0SetupInstall Python 3.11 and Node 18 (20+ isnotcurrently supported).python3.11-mvenvvenv

.\venv\Scripts\activate# Windows.venv/bin/activate.fish# fishsourcevenv/bin/activate# everything else# run from the repo root, not doc/pipinstall-e.[dev]UsageFor local testing, create a file called.envin the repo root following this template:GITHUB_REPOSITORY=MoonlitJolteon/hex-keys-addonGITHUB_SHA=mainGITHUB_PAGES_URL=https://moonlitjolteon.github.io/hex-keys-addonUseful commands:# show helphexdoc-h# render and serve the web book in watch modenodemon--configdoc/nodemon.json# render and serve the web bookhexdocserve# export, render, and merge the web bookhexdocexporthexdocrender
hexdocmerge# start the Python interpreter with some extra local variableshexdocrepl
Package: hexdoc-hexresearch
hexdoc-hexresearchPython web book docgen andhexdocplugin for Hex Research.Version schemeWe usehatch-gradle-versionto generate the version number based on whichever mod version the docgen was built with.The version is in this format:mod-version.python-version.mod-pre.python-dev.python-postFor example:Mod version:0.11.1-7Python package version:1.0.dev0Full version:0.11.1.1.0rc7.dev0SetupInstall Python 3.11 and Node 18 (20+ isnotcurrently supported).python3.11-mvenvvenv

.\venv\Scripts\activate# Windows.venv/bin/activate.fish# fishsourcevenv/bin/activate# everything else# run from the repo root, not doc/pipinstall-e.[dev]UsageFor local testing, create a file called.envin the repo root following this template:GITHUB_REPOSITORY=Dashkal/hexresearchGITHUB_SHA=developGITHUB_PAGES_URL=https://dashkal.github.io/hexresearchUseful commands:# show helphexdoc-h# render and serve the web book in watch modenodemon--configdoc/nodemon.json# render and serve the web bookhexdocserve# export, render, and merge the web bookhexdocexporthexdocrender
hexdocmerge# start the Python interpreter with some extra local variableshexdocrepl
Package: hexdoc-mediaworks
hexdoc-mediaworksPython web book docgen andhexdocplugin for Mediaworks.Version schemeWe usehatch-gradle-versionto generate the version number based on whichever mod version the docgen was built with.The version is in this format:mod-version.python-version.mod-pre.python-dev.python-postFor example:Mod version:0.11.1-7Python package version:1.0.dev0Full version:0.11.1.1.0rc7.dev0SetupInstall Python 3.11 and Node 18 (20+ isnotcurrently supported).python3.11-mvenvvenv

.\venv\Scripts\activate# Windows.venv/bin/activate.fish# fishsourcevenv/bin/activate# everything else# run from the repo root, not doc/pipinstall-e.[dev]UsageFor local testing, create a file called.envin the repo root following this template:GITHUB_REPOSITORY=artynova/mediaworksGITHUB_SHA=mainGITHUB_PAGES_URL=https://artynova.github.io/mediaworks/Useful commands:# show helphexdoc-h# render and serve the web book in watch modenodemon--configdoc/nodemon.json# render and serve the web bookhexdocserve# export, render, and merge the web bookhexdocexporthexdocrender
hexdocmerge# start the Python interpreter with some extra local variableshexdocrepl
Package: hexdoc-minecraft
hexdoc-minecraftPython web book docgen andhexdocplugin for Minecraft.Version schemeWe usehatch-gradle-versionto generate the version number based on whichever mod version the docgen was built with.The version is in this format:mod-version.python-version.mod-pre.python-dev.python-postFor example:Mod version:0.11.1-7Python package version:1.0.dev0Full version:0.11.1.1.0rc7.dev0Setuppython3.11-mvenvvenv

.\venv\Scripts\activate# Windows.venv/bin/activate.fish# fishsourcevenv/bin/activate# everything else$env:HATCH_GRADLE_DIR='versions/1.20.2'# WindowsHATCH_GRADLE_DIR='versions/1.20.2'# everything elsepipinstall-e.[dev]UsageFor local testing, create a file called.envin the repo root following this template:GITHUB_REPOSITORY=hexdoc-dev/hexdoc-minecraftGITHUB_SHA=mainGITHUB_PAGES_URL=https://hexdoc-dev.github.io/hexdoc-minecraftUseful commands:# show helphexdoc-h

hexdoc-minecraftfetch-pversions/1.20.2/hexdoc.toml
hexdoc-minecraftunzip
hexdocexport# start the Python interpreter with some extra local variableshexdocrepl
Package: hexdoc-oneironaut
hexdoc-oneironautPython web book docgen andhexdocplugin for Oneironaut.Version schemeWe usehatch-gradle-versionto generate the version number based on whichever mod version the docgen was built with.The version is in this format:mod-version.python-version.mod-pre.python-dev.python-postFor example:Mod version:0.11.1-7Python package version:1.0.dev0Full version:0.11.1.1.0rc7.dev0Setuppython3.11-mvenvvenv

.\venv\Scripts\activate# Windows.venv/bin/activate.fish# fishsourcevenv/bin/activate# everything else# run from the repo root, not doc/pipinstall-e.[dev]UsageFor local testing, create a file called.envin the repo root following this template:GITHUB_REPOSITORY=beholderface/oneironautGITHUB_SHA=mainGITHUB_PAGES_URL=https://beholderface.github.io/oneironautUseful commands:# show helphexdoc-h# render and serve the web book in watch modenodemon--configdoc/nodemon.json# render and serve the web bookhexdocserve# export, render, and merge the web bookhexdocexporthexdocrender
hexdocmerge# start the Python interpreter with some extra local variableshexdocrepl
Package: hexdomain
hexdomainreads words from awords fileand converts them tohexspeakdomain names.For example, “code” becomesc0.deand “coffee” becomesc0ff.ee.UsageBy default,hexdomainreads words from/usr/share/dict/words:hexdomainYou can specify an alternate word list as well:hexdomain /path/to/my/wordsYou can also provide custom substitutions instead of the built-in ones; seehexdomain-hfor details.InstallationInstall with pip:pip install hexdomainLicenceMIT
Package: hexed
A playground package for exploring hex mapping as described at:https://www.redblobgames.com/grids/hexagons/Free software: BSD 2-Clause LicenseInstallationpip install hexedYou can also install the in-development version with:pip install https://github.com/thumdugger/python-hexed/archive/main.zipDocumentationhttps://python-hexed.readthedocs.io/DevelopmentTo run all the tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.0.0 (2022-01-22)First release on PyPI.
Package: hexedhash
hexedhashA module to create a hash from text by translating the text into a hex, adding a "salt" and trimming out the extra parts.How to useUsing the module is very easy. Here are a couple of examples.First examplefromhexedhashimportHasherhash01=Hasher(prefix="ltcp",salt="hash::189dj")if__name__=="__main__":print(hash01.makehash("Hello world!"))Output:ltcp[3a6f3a203177386f]Second examplefromhexedhashimportHasherif__name__=="__main__":print(Hasher().makehash("Hello world!"))Output:ltcp[5f6f73206577636f]
Package: hexer-hx
hexerHexer is a cli command (hexer) as well as a markup language (hexer markup) which enables you to decode binary files using your favorite editor.InstallEither get the latest development version, by cloning the gitlab repo to your system, and then installing with pip:gitclonehttps://gitlab.com/hexer-py/hexer.git
pipinstall-ehexerOr install the latest release with pip:pipinstallhexer-hxYou should now have access to thehexercommandUsageTo get help, use the-hoptionhexer-hTo start decoding a theoretical file namedsomething.bin, run:hexersomething.binThis will output hexer markup to another theoretical file namedsomething.bin.hx.something.bin.hxwill look very much like the output fromhexdump -C:0: 0100 0000 0200 0000 0300 0000 1000 # <..............>You can now open thesomething.bin.hxfile in any text editor and start replacing the hex data with other hexer markup.For instance, to tell hexer that the data has 3 long integers followed by a short integer, you replace the file contents with:0: L*3HWhen you now re-run the hexer command, it will instead read the content of thesomething.bin.hxfile and use the hexer markup to decode thesomething.binfile.While doing this, it will also output the decoded data back into thesomething.bin.hxfile (via a temporary file namedsomething.bin.hx.out).Giving you the following:0: LLLH[1,2,3,16]Repeating the above workflow allows you to progressively decode your binary file as you discover more and more about how it's structured.Other useful hexer markup features, such as macros and variables, make it easy for you to decode more complex files:<=string>B{s}S{v}*{s}</string>
00: <string name>B{s}[9]S{v}*{s}"Something"</string>
0a: <string date>B{s}[10]S{v}*{s}"2020-08-16"</string>You can even tell hexer to output any decoded variables as a json object, by using the-joption:hexer-jstrings.bin>strings.jsonhexer markupTo find out more about the hexer markup syntax, please refer to thedocumentation repo.Note that the syntax might change during the development phase of this project. Check back to the docs if you are experiencing syntax errors after an update.Warning about large filesBe careful running hexer on larger files since the hexer output will take up well over twice the amount of space as the original file. This could cause memory or disk space issues in some cases. If you really need to decode a huge file, then consider splitting it up into smaller more manageable chunks, or finding a smaller file in the same format.BugsPlease report any bugs using thegitlab issue tracker.ContributingAny help is appreciated, so feel free to create amerge request. If you want to do a change the syntax, then please create a merge request in the documentation repo as well.
Package: hexes
ServiceStatusPyPIDownloadsWaffle.ioCircleCIRead the DocsCurses for humans.This is free software, under a BSD license.This is very very alpha! I’m working on it, though, and would love your
feedback, pull requests, and enthusiasm.Thanks!FeaturesIt can draw boxes, lay them out, and resize them. FANCY!It can put text in boxes and only reveal the appropriate bits of it. SHINY!It has an event loop, and allows you to bind to startup and keypresses. SPOOKY!It can accept text input and process it. HEAVY!History0.4.0 (2015-08-08)Added support for text input areas.0.3.1 (2015-05-08)Slight unifications to the way you register behaviors.0.3.0 (2015-05-08)Event loop and binding listeners.0.2.0 (2015-04-26)Rendering text into boxes.0.1.0 (2015-04-25)First release on PyPI.
Package: hexfile
hexfile=======This is a simple library for parsing hex files.  Currently only intel hex files are supported.Installation------------You can use the included setup.py or use your pip to install it from PyPIUsage-----To create a HexFile object use hexfile.load:```pythonimport hexfilef = hexfile.load('memory.hex')```The `HexFile` object is composed of one or more memory segments, which may be discontinuous.  You can access the contents of the hex file as though it were an array of bytes:```pythonprint f.size       # Total number of bytes in the hexfile (NOT the total span of all addresses)byte = f[16]       # Returns the byte at address 16 (as an int)bytes = f[256:512] # Returns 256 bytes as a listprint f.segments   # Display all the segments in the hex file```The `HexFile` object also supports iteration, but rather than iterating over byte values as if it were a list, it includes the byte addresses, as if it were enumerated.  This is because the file might be discontinuous, so addresses are frequently needed during iteration.```for addr, data in f:print '0x%08x : 0x%02x' % (addr, data) # Print every byte in the hex file and its 32-bit address```
Package: hexformat
ThehexformatPython package allows the processing of several HEX data formats.
Supported formats are theIntel-Hexformat, the MotorolaS-Recordformat as well as thehex dumpandTektronix hexformat.
The first two are often used for programming microcontrollers while the last is often used to display binary data in a user readable way.Files in the mentioned format can be created, modified (e.g. set, delete and fill data) and read from or written to files.
A base classMultiPartBufferis provided which implements the handling of multiple data parts where every part is identified by its corresponding start address.
This base class allows for the basic operations like reading and writing binary files as well as modifing the binary data.
The specific classesIntelHex,SRecord,HexDumpand `` are derivated from it which implement the parsing and generating of the corresponding HEX formats as well as implementing file format specific features.MotivationThis package was mainly created to replace thesrecordcommand line tool and its complicated interface with a clean python interface for use with handling microcontroller HEX files.
The existing Python libraryintelhexwas used for a while, but then the need for the S-Record format appeared.
Alsointelhex.IntelHexdid not provide a suitable interface for the most often used operations.License:MIT LicenseCopyright (c) 2015-2022 by Martin Scharrer <martin.scharrer@web.de>Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the “Software”), to deal in the Software without
restriction, including without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: hexfrost-simplecrud
SimpleCRUDSimpleCRUD is a library that provides a simple way to create CRUD commands for SQLAlchemy models.Installationpipinstallhexfrost-simplecrudpoetry add hexfrost-simplecrudUsageCreate a modelCreate a CRUDConfigSet sessionmaker to CRUDConfigImport CRUD functionsUse CRUD functions and enjoyExample usagefromsqlalchemy.ext.asyncioimportcreate_async_engine,AsyncSession,async_sessionmakerfromsqlalchemy.ormimportDeclarativeBasefromsimplecrudimportCRUDConfig,BaseModelWithCRUD,get_all,create_obj,update_objengine=create_async_engine("sqlite+aiosqlite:///test.db",echo=True)async_sessionmaker=async_sessionmaker(async_engine,expire_on_commit=False,class_=AsyncSession)# Create a modelclassExampleModel(DeclarativeBase):__tablename__="example_model"id=Column(Integer,primary_key=True)name=Column(String(50),nullable=False)description=Column(String(50),nullable=False)# Create CRUD configCRUDConfig.sessionmaker(async_sessionmaker)asyncdefexample_func():# Create a modelnew_model=awaitcreate_object(model,name="test",description="test")# Get all modelsall_objs=awaitget_all(model)# Update a modelupdated_obj=awaitupdate_object(model,name="test2",description="test2")# Delete a modelawaitdelete_object(model,name="test2",description="test2")Avaliable functions:get_object- get a single objectget_all- get all objectsget_all_with_filter- get all objects with filterget_objects- get all objects with filter, limit and offsetget_or_create_object- get or create an objectcreate_object- create an objectbulk_create- create multiple objectsupdate_object- update an objectupdate_or_error- update an object or raise an errorupdate_object_by_id- update an object by idupdate_or_create_object- update or create an objectdelete_object- delete an objectdelete_object_by_id- delete an object by idbulk_delete- bulk delete objectsbulk_delete_by_id- bulk delete objects by idContributingThis project is open for contributions. Feel free to open an issue or create a pull request.Dev version status:LicenseGNU GENERAL PUBLIC LICENSE Version 3
Package: hexgrid
Functions for working with a hexagonal settlers of catan gridThis module implements the coordinate system described in Robert S. Thomas’s PhD dissertation on
JSettlers2, Appendix A. See the project athttps://github.com/jdmonin/JSettlers2for details.Supports Python 3. Might work in Python 2.Seehexgrid.pyfor thorough documentation.> Author: Ross Anderson ([rosshamish](https://github.com/rosshamish))### Installation` pip install hexgrid `### UsageSeehttps://github.com/rosshamish/catan-spectatorfor extended usage.The module is a soup of functions which compute various transforms on tile, node and edge coordinates.
Functions are well documented - read function names and docstrings in the code for more info.### Coordinate SystemThe coordinate system is the one described in Robert S. Thomas’s PhD dissertation on
JSettlers2, Appendix A. See the project athttps://github.com/jdmonin/JSettlers2The idea is that there are three things: tiles, nodes, and edges.All three have integer coordinates.Tiles also have identifiers, which range from 1 through 19.The coordinates are such that it’s easy to compute a tile, node, or edge’s neighbours by adding and subtracting.
See the dissertation and/or the code for details.### MapsTile identifiers![tile order](doc/images/tile_order.png)Tile coordinates![tile coords](doc/images/tile_coords.png)Node coordinates![node coords](doc/images/node_coords.png)Edge coordinates![edge coords](doc/images/edge_coords.png)### LicenseGPLv3
Package: hexgridgeo-py
BasicsGEO wrapper forHexGridExampleimporthexgridimporthexgridgeoimportmortongrid=hexgridgeo.Grid(hexgrid.OrientationFlat,hexgrid.Point(500,500),hexgridgeo.ProjectionSM)hex=grid.hex_at(hexgridgeo.Point(-73.5,40.3))code=grid.hex_to_code(hex)restored_hex=grid.hex_from_code(code)neighbors=grid.hex_neighbors(hex,2)points=[hexgridgeo.Point(-73.0,40.0),hexgridgeo.Point(-74.0,40.0),hexgridgeo.Point(-74.0,41.0),hexgridgeo.Point(-73.0,41.0)]region=grid.make_region(points)hexes_in_region=region.hexes
Package: hexgrid-py
BasicsConfigurable hex grid on abstract surface.Exampleimporthexgridimportmortoncenter=hexgrid.Point(0,0)size=hexgrid.Point(20,10)grid=hexgrid.Grid(hexgrid.OrientationFlat,center,size,morton.Morton(2,32))hex=grid.hex_at(hexgrid.Point(50,50))code=grid.hex_to_code(hex)restored_hex=grid.hex_from_code(code)neighbors=grid.hex_neighbors(hex,2)points=[hexgrid.Point(0,0),hexgrid.Point(0,10),hexgrid.Point(10,10),hexgrid.Point(10,0)]region=grid.make_region(points)hexes_in_region=region.hexes