Saravanan666/pypi-org huggingface dataset:
Package: hxapy
A python implementaion for the HxA file formatThis is an implementaion of the HxA 3D asset format.
The HxA file format was invented by Eskil Steenberg
in an effort to have a 3D file format you could
implemented in a day with out much hassle.If you want an overiew of HxA I recomend checking Eskil's Original
Video here:https://youtu.be/watch?v=jlNSbSutPZEAlso checkout the original HxA repo and C implementation herehere:https://github.com/quelsolaar/HxAThis library was modeled after gingerbill's odin implementation of hxa which can be found here:https://github.com/odin-lang/Odin/tree/master/core/encoding/hxaInstallationThis library is being hosted on PYPI so you can install it by simply usingpip install hxapyYou can test if everything is working import the library and give thehxa.triangle()function agofromhxapyimporthxatriangle=hxa.triangle()hxa.write_to_file("path/to/file.hxa",triangle)If the program spits out a file you are good to go.UsageThis library was made to help with the creation of HxA exporters and importers for popular DCC tools.
Eskil's original C implementation (and collection of converters) were great at demoing the format but
wasnt great for tool integration. I'm hoping that by providing a way to use the HxA format in native python
it would help to etablish a larger ecosystem of tools and addons around the format.0.1.0 checklistThe basic "in-memory" class composition of the file.writing to a filereading from a file - (Open a PR if you need this ASAP, otherwise I'll be working on a blender exporter first)
Package: hxfile
HXfileHxfile Unofficial APIrequirementspipunidecodeconfigsetparserheaderrequestsbs4bitmathclipboardfor development:pydebugerjsoncolorfor notification:xnotifyusageall functions same as onapi documentationplus downloaderdownload1,download2,generateusage:hxfile[-h][-d[DOWNLOAD...]][-mMETHOD][-pDOWNLOAD_PATH][-nSAVE_AS][-iINFO][-I][-SACCOUNT_STAT][-uUPLOAD][-l][-LLIST_FOLDER][-rRENAME_FILERENAME_FILE][-RRENAME_FOLDERRENAME_FOLDER][-cCLONE][-MMOVEMOVE][-CMKDIRMKDIR][-sd][--api-keyAPI_KEY][--api-key-tempAPI_KEY_TEMP][-g[GENERATE...]][--clip]optionalarguments:-h,--helpshowthishelpmessageandexit-d[DOWNLOAD...],--download[DOWNLOAD...]Downloadbygivenurlorid/filecode,youcanchangeusemethod"1"or"2"with-m/--method,defaultmethodis"2"-mMETHOD,--methodMETHODDownload/Generatemethod:"2"download/generateurlwithoutAPI_KEYneeded,butyoumuststillinputAPI_KEYtoconfigfile"hxfile.ini"forotherfunctionrequirement,"1"download/generatewithAPI_KEYflowcheckyourfile-->ifnotexists-->clone-->generatedirect_link-pDOWNLOAD_PATH,--download-pathDOWNLOAD_PATHSavedownloadactionfiletodirectory-nSAVE_AS,--save-asSAVE_ASDownloadsaveas-iINFO,--infoINFOGetFileinfo-I,--account-infoGetAccountInfo-SACCOUNT_STAT,--account-statACCOUNT_STATGetAccountInfoStatistics-uUPLOAD,--uploadUPLOADUploadfile-l,--list-fileListallfiles-LLIST_FOLDER,--list-folderLIST_FOLDERListallfolder-rRENAME_FILERENAME_FILE,--rename-fileRENAME_FILERENAME_FILERenamefile-RRENAME_FOLDERRENAME_FOLDER,--rename-folderRENAME_FOLDERRENAME_FOLDERRenamefolder-cCLONE,--cloneCLONEClone/Copyfilefrompubliclinkasyourefile-MMOVEMOVE,--moveMOVEMOVEMovefiletofolder-CMKDIRMKDIR,--mkdirMKDIRMKDIRCreatenewFolder-sd,--show-deletedShowfilesdeletealongforxdays--api-keyAPI_KEYsetAPI_KEY--api-key-tempAPI_KEY_TEMPsetAPI_KEYastemporarykey-g[GENERATE...],--generate[GENERATE...]Generatelink/idasdirectdownloadlink--clipCopydirectdownloadurltoclipboardexample:hxfile--api-key-temp4534wit9lvakdohxjdv6-im13uao5l10rthxfile--api-key-temp4534wit9lvakdohxjdv6-ihttps://hxfile.co/m13uao5l10rt>>>fromhxfileimportHxfile>>>id="m13uao5l10rt"# or https://hxfile.co/m13uao5l10rt>>>Hxfile.file_info(id)# or>>>h=Hxfile()>>>h.file_info(id)# or>>>Hxfile().file_info(id)>>># direct download without API_KEY>>>Hxfile.download1(id)>>># direct download with API_KEY requirement>>>Hxfile.download2(id)>>>#generate only, not download>>>Hxfile.generate(id)downloader support 'idm' (windows), 'wget/aria2c/persepoli' (linux), if error then downloader usepywget(all)authorcumulus13
Package: hxgvtdjmab
Hxgvtdjmab=================This API SDK was automatically generated by [APIMATIC Code Generator](https://apimatic.io/).This SDK uses the Requests library and will work for Python ```2 >=2.7.9``` and Python ```3 >=3.4```.How to configure:=================The generated code might need to be configured with your API credentials.To do that, open the file "Configuration.py" and edit its contents.How to resolve dependencies:===========================The generated code uses Python packages named requests, jsonpickle and dateutil.You can resolve these dependencies using pip ( https://pip.pypa.io/en/stable/ ).1. From terminal/cmd navigate to the root directory of the SDK.2. Invoke ```pip install -r requirements.txt```Note: You will need internet access for this step.How  to test:=============You can test the generated SDK and the server with automatically generated testcases. unittest is used as the testing framework and nose is used as the testrunner. You can run the tests as follows:1. From terminal/cmd navigate to the root directory of the SDK.2. Invoke ```pip install -r test-requirements.txt```3. Invoke ```nosetests```How to use:===========After having resolved the dependencies, you can easily use the SDK following these steps.1. Create a "hxgvtdjmab_test.py" file in the root directory.2. Use any controller as follows:```pythonfrom __future__ import print_functionfrom hxgvtdjmab.hxgvtdjmab_client import HxgvtdjmabClientapi_client = HxgvtdjmabClient()controller = api_client.clientresponse = controller.get_basic_auth_test(<required parameters if any>)print(response)```
Package: hxid
Homex HXID Generator Library for PythonThis is a Python implementation of HXID (HomeX ID) generation and validation. It is intended to be used by both systems that generate HXIDs and systems that want to validate existing HXIDs.RequirementsThis project requires Python version >=3.6.InstallationAddhxid>=0.1.0to yourrequirements.txtfile or simply install locally with:pip install hxidUsageThe available public methods include:def generate_hxid(prefix: str, seed:str, config: HxidConfig = None, appendage_configs: List[HxidConfig] = []) -> strdef is_hxid(candidate: str) -> boolAlso, there is a public class constructor for generating HXID config objects:HxidConfig(prefix: str, seed: str, target_length: int = 9, collision_incrementor: int = 0)For optimal use of this package, generate yourHxidConfigobjects and pass these intogenerate_hxidto produce your HXIDs.Testing & ContributingRun tests locally withpython -m unittest tests/test_hxid.pyThe test suite will be checked for any Pull Requests made to this repository.  Please adapt the tests to your proposed changes for contributing.
Package: hxl-proxy
Python-/flask-based web proxy for transforming a HXL dataset
dynamically. Requires Python3.User documentation is available athttps://github.com/HXLStandard/hxl-proxy/wiki# InstallationInstallation from PyPi:` pip installhxl-proxy`Installation from source:` python setup.py install `Running unit tests:` python setup.py test `# ConfigurationTo configure the proxy, make a copy of config.py.TEMPLATE (e.g. to config.py), and change its values as necessary. The environment variable HXL_PROXY_CONFIG should point to your local config file’s location.  More details appear below.## CachingChoose and configure your input and output caches as needed, following the examples in the config template. You may need to create local directories or databases, depending on the caching backends you choose.## P-codes and mappingFor mapping, the Proxy uses a collection of GeoJSON files hosted online. If you want to use a local copy (e.g. for offline demos), clone the GitHub repository athttps://github.com/hxlstandard/p-codesand set the new base URL as the value of PCODE_BASE_URL. Note that the server serving the local copy must implement CORS, since the shapes get loaded on the browser side:https://www.w3.org/TR/cors/Edit PCODE_COUNTRY_MAP if you’d like to make more countries available in the map dropdown menu.# UsageLaunching a local server (usually onhttp://127.0.0.1:5000):` pythonrun-server.py`For web deployment, see the hxl-proxy.wsgi.TEMPLATE file and the
flask documentation.For more on HXL, seehttp://hxlstandard.orgFor more documentation about the underlying HXL engine and filters,
seehttps://github.com/HXLStandard/libhxl-python/wiki
Package: hxlti-djapp
hxlti============django app to implement a lti providerquick start============hxlti requires a redis instance running, and by default it will look for`redis://localhost:6379/0`.1. add "hxlti" to your INSTALLED_APPS setting like this:INSTALLED_APPS = [...'hxlti',]2. include the hxlti urlconf in your project `urls.py` like this:path('lti/', include('hxlti.urls')),3. run `python manage.py migrate` to create hxlti models for consumer keys4. start the development server and visit `http://127.0.0.1:8000/admin/` tocreate a consumer (you will need the `Admin` app enabled)5. configure your lti consumer with the created consumer keys in the previousstep, and use the launch url `http://127.0.0.1:8000/lti/launch/`other configs=============some other settings for hxlti:# hxlti app settingsHXLTI_ENFORCE_SSL = True  # check if request protocol is https, default is falseHXLTI_DUMMY_CONSUMER_KEY = os.environ.get('HXLTI_DUMMY_CONSUMER_KEY', 'dummy')HXLTI_REDIS_URL = os.environ.get('REDIS_URL', 'redis://localhost:6379/0')
Package: hxltm-eticaai
HXLTM - ontologia and initial reference implementationTheMultilingual Terminology in Humanitarian Language Exchange(abbreviation:HXLTM) is an HXLated valid tabular format (stricly, a
documented subset ofHXL Standardstarted byHXL-CPLP) with strong focus to store community
contributed translations and multilingual terminology while maximizing
portability for implementers.The documentation is available athttps://hxltm.etica.ai/.pipinstallhxltm-eticaai--upgradeLicensesPublic domain means each issue only needs to be resolved onceSoftware licenseTo the extent possible under law,Etica.AIand non anonymous collaborators have waived all copyright and related or
neighboring rights to this work toPublic Domain.Optionally, theBSD Zero Clause Licenseis also one explicit alternative to the Unlicense as an older license approved
by the Open Source Initiative:SPDX-License-Identifier: Unlicense OR 0BSDCreative content license (algorithms and concepts as pivot exchange for other data standards, and user documentation)To the extent possible under law,Etica.AIand non anonymous collaborators have waived all copyright and related or
neighboring rights to this work to public domain dedication. As 2021, theCC0 1.0 Universal (CC0 1.0) Public Domain Dedicationwithadditional rightto you granted upfront:The collaborators explicitly waive any potentialpatent rightsfor
algorithms/ideas. We also preemptively ask that potential requests from our
heirs in unforeseen future in any jurisdiction be ignored by any regional or
international court.More context about thisThis different license for creative content is mostly for lawyers who would
complain about use of Unlicense for creative content. More context (from the
point of open source) on waiving patent rigths explicitly (since no better license for
creative content do exist) is here:https://opensource.org/faq#cc-zero.There is no interest by ourselves to dopatent troll(for monetary gain)
or allow abuse copyrights (to enforce companies, organizations, o
governments) even if:we directly strongly disagreesome entity try to use us as proxy to enforce us some sort of boycott to any
other entity.Note that data exchange on humanitarian context, even outside global-like
war-time, already is quite complex and the need of accurate linguistic content
conversion still even more critical to not have know errors. While the idea of
stories behind cases like the "黙殺" ("mokusatsu") are disputable, the
modern tooling to deal with multilingual terminology (including used to
create dictionaries) is prone to human error.
Package: hxml
hxmlhxml is a simple xml parser for Python 3.12Examples<!-- test.xml --><?xml version="1.0" encoding="UTF-8"?><le_epic_xml><name>EpicXML</name><cool><a>as</a><b>you</b><c>see</c><d>it</d><e>works!</e></cool></le_epic_xml># epic_xml.pyfromhxmlimportXMLxml=XML("test.xml")epic_xml=xml.get_root_item("le_epic_xml")print(epic_xml)# output: {'name': 'Epic XML', 'cool': {'a': 'as', 'b': 'you', 'c': 'see', 'd': 'it', 'e': 'works!'}}
Package: hxrate
HXRATEThis package contains modules for hydrogen deuterium exchange (hdx) mass spectrometry data analysis. It contains:backexchange: for backexchange calculationsratefit: for fitting hdx ratesopenfe: for calculating opening free energy values from hdx rateshxdata: contains methods for reading and writing datamethods: contains helper methodsFor usage, please refer to the following repository:https://github.com/sugyandixit/hxrate_pipelineUnder scripts/hxrate/ there are python scripts that use HXRATE package for rate fitting and opening free energy calculationsYou could also use hxrate_pipeline repository for distributed computing in High Performance Computing clusters
(Please refer to README in hxrate_pipeline repository)Have fun fitting!
Package: hx-requests
hx-requestsFull documentation:https://hx-requests.readthedocs.io/en/latest/#Hx-requests is a package to simplify the usage of htmx with Django.
It enables an application to make asyncronous requests without clogging up
views and urls with extra code. It simplifies making django forms post asyncronously
with htmx, and many other awesome features.The idea of hx-requests is thatHXRequestsabsorb all htmx requests.
Define anHXRequestand
observe the magic ofhx-requests.No need to define extra urls to handle these requestsNo need to add anything extra in viewsReusableHXRequestsacross viewsBuilt inHXRequeststo reduce boilerplate codeSee full documentation here:https://hx-requests.readthedocs.io/en/latest/#Installationpipinstallhx-requestsINSTALLED_APPS=(...'hx_requests',)NoteIt's assumed that htmx is already included in the base html file. It's also recommended to include hyperscript.
Htmx:<script src="https://unpkg.com/htmx.org@1.8.6"></script>Hyperscript:<script src="https://unpkg.com/hyperscript.org@0.9.8"></script>Contributing to this repositoryWarning CI is not setup yet, but will be at a later date.Getting setup# If your system has python3.10 installed make sure the virtual environment is using 3.8poetryenvusepython3.8# Install packagespoetryinstall# Install pre-commit hookspre-commitinstall-tpre-commit-tpre-push-tcommit-msg# Activate the virtual environmentpoetryshellCommittingMust follow Conventional Commithttps://www.conventionalcommits.org/en/v1.0.0/
Package: hxrsnd
Controls automation module for the hard x-ray split and delay instrument.Getting StartedThe easiest way to start using the hard x-ray split and delay is to navigate to
the released area which has everything setup. From any of the LCLS NFS machines
that can view XCS PVs, run the following to change to the correct directory:$ cd /reg/neh/operator/xcsopr/bin/sndFrom here, all the core functionality of the split and delay system can be
accessed.Running the IPython ShellThe most common used way to interface with the system is through theIPythonshell. From the top level SnD directory listed above, run the following launcher
script:$ ./run_sndThe shell will have all the SnD objects instantiated and ready for use.NoteThis is a softlink to the launcher script which lives inbin/Instrument ScreensThere is a system level EDM screen that has all the motors and pneumatics. To
launch the screen, run the following launcher sript from the directory listed
above:$ ./snd_mainNoteThis is a softlink to the launcher script which lives inhxrsnd/screens/To view diode correlation plots, run the following launcher script from the
directory listed above:$ ./show_diodes.sh
Package: hxsd
Helixoide Service DiscoveryReally Really Simple service discovery using multicast.
It does nothing else.usage:
./setup.py install“””On the server providing a service”””
import hxsd
provider = hxsd.serviceProvider(“multicast-group”,port)
maService = hxsd.service(“AWESOME SERVICE”, 31337)
provider.addService(maService)
provider.start()“””On the client looking for a service”””
import hxsd
finder = hxsd.serviceFinder(“multicast-group”,port)
services = finder.search(“AWESOME SERVICE”)
print services
Package: hxss.responsibility
hxss.responsibilitySimple implementation ofchain of responsibilitiespattern.result=chain(request)[&DefaultLinkClass][|<callable|Link>]|chainInstallationpip:hxss.responsibilityaur:python-hxss-responsibilityUsagefromhxss.responsibilityimportchaindefnone(value):passdefincrement(value):returnvalue+1defdecrement(value):returnvalue-1request=1result=chain(request)|none|increment|decrement|chainassert(result==2)result=chain(request)|none|decrement|increment|chainassert(result==0)result=chain(request)|none|none|none|chainassert(result==None)BasicsChain of responsibilities sequentially handles request by every link until response returned.By default everynot Nonevalue considered as valid response(some kind of Null coalescing operator):handled=[]defwrap(func):defwrapper(value):handled.append(func.__name__)returnfunc(value)returnwrapperresult=chain(request)\|wrap(none)\|wrap(increment)\|wrap(decrement)\|chainassert(result==2)assert(handled==['none','increment'])Lifecyclechainfunction creates newRequesteverycallablepassed toRequestby|operator wraps intoLinkwhich handles the requestonceLinkreturns validResponseall nextcallableswill be ignored| chainoperator forces to return raw response valueCustomizationcustom result validation:fromhxss.responsibilityimportLinkclassFinalLink(Link):def_validate_result(self,result):# see default Link implementationreturnself._response(result)result=chain(1)|FinalLink(none)|increment|decrement|chainassert(result==None)custom independent link:classCustomLink(Link):def__init__(self):passdefhandle(self,request):result=calc_result(request)returnself._response(result)result=chain(1)|increment|CustomLink()|decrement|chaincustom default link:classInversedLink(Link):def_validate_result(self,result):if(resultisNone):returnself._response(result)result=chain(1)&InversedLink|increment|CustomLink()|decrement|chainassert(result==None)
Package: hy2glsl
hy2glsl: Hy to GLSL Language TranslatorThis is an exploratory experiment to translate Hy procedure to GLSL shader,
inspired by thevarjo translator.Data TypesUniform, varying and outputs need to be typed. It may be possible to infer
the type by knowing the associated CPU (e.g. numpy) object type.Function overloading is not supported as the current implementation maps
one function signature to one function name.For function signature and variables, the types are inferred using this
process:Variable definition types are inferred from the value expression:look for known constructor like vec2()look for known variable type already inferredlook for known symbol type like float? or integer?Function argument types are inferred using a reverse order first passFunction return types are inferred from the last expression of the body.This type inferrence process works for such shader:(setv var (vec2 0.0))
(defn nested-func [arg] ...)
(defn func [a b] (nested-func (+ a b)))
(defn main [] (func var 2))But it will fail when function arguments are solely defined by return type:(defn func [] (return 42))
(defn other-func [a] a)
(defn main [] (other-func (func)))Fortunately, shader usualy mutates return value before using them as a
function argument, therefor that primitive process works in most cases.Example:A mandelbrot fragment shader in Hy:(setv MAX_ITER 42.0)
(print (hy2glsl `(shader
  (version 350)
  (uniform vec2 iResolution)
  (uniform vec2 center)
  (uniform float range)
  (defn mandelbrot-color [coord]
    (setv idx 0.0)
    (setv z (vec2 0.0))
    (setv c coord)
    (while (< idx ~MAX_ITER)
      (setv z (+ (vec2 (- (* z.x z.x) (* z.y z.y))
                       (* 2.0 z.x z.y))
                 c))
      (if (> (dot z z) 500.0)
        (break))
      (setv idx (+ idx 1)))
    (vec3 (* 1.0 (/ idx ~MAX_ITER))))
  (defn main []
    (setv uv (- (* (/ gl_FragCoord.xy iResolution.xy) 2.) 1.0))
    (setv uv.y (* uv.y (- (/ iResolution.y iResolution.x))))
    (setv pos (+ center (* uv range)))
    (setv gl_FragColor (vec4 (mandelbrot-color pos) 1.0))))))Results in:#version 350
uniform vec2 iResolution;
uniform vec2 center;
uniform float range;

vec3 mandelbrot_color(vec2 coord) {
  float idx = 0.0;
  vec2 z = vec2(0.0);
  vec2 c = coord;
  while (idx < 42.0) {
    z = vec2(z.x * z.x - z.y * z.y, 2.0 * z.x * z.y) + c;
    if (dot(z, z) > 500.0) {
      break;
    }
    idx = idx + 1;
  }
  return vec3(1.0 * idx / 42.0);
}

void main(void) {
  vec2 uv = gl_FragCoord.xy / iResolution.xy * 2.0 - 1.0;
  uv.y = uv.y * -iResolution.y / iResolution.x;
  vec2 pos = center + uv * range;
  gl_FragColor = vec4(mandelbrot_color(pos), 1.0);
}Or using the library, you would write:(setv mandelbrot `(setv z (+ (cSquare z) c)))
(print (hy2glsl (fragment-plane (color-ifs mandelbrot))))DemoIn the example folder there is a loaded based on glumpy to test (and reload)
shader module:python setup.py develop --user
pip install --user glumpy
pushd example
./loader.hy mandelbrot.hy
Package: hya
hyaOverviewhyais a library of customOmegaConfresolvers.hyais designed to be used withHydra.
The resolvers can be easily registered in your python project by adding the following lines:fromhyaimportregister_resolversregister_resolvers()DocumentationInstallationContributingAPI stabilityLicenseInstallationWe highly recommend installing
avirtual environment.hyacan be installed from pip using the following command:pipinstallhyaTo make the package as slim as possible, only the minimal packages required to usehyaare
installed.
To include all the packages, you can use the following command:pipinstallhya[all]Please check theget started pageto see how to
install only some specific packages or other alternatives to install the library.
The following is the correspondinghyaversions and tested dependencies.hyaomegaconfbraceexpand*numpy*torch*pythonmain>=2.1,<3.0>=0.1.7,<0.2.0>=1.21,<2.0>=1.10,<2.2>=3.9,<3.130.2.0>=2.1,<3.0>=0.1.7,<0.2.0>=1.21,<2.0>=1.10,<3.0>=3.9,<3.130.1.3>=2.1,<3.0>=0.1.7,<0.2.0>=1.10,<2.2>=3.9,<3.130.1.2>=2.1,<3.0>=0.1.7,<0.2.0>=1.10,<2.2>=3.9,<3.130.1.1>=2.1,<3.0>=0.1.7,<0.2.0>=1.10,<2.2>=3.9,<3.120.1.0>=2.1,<3.0>=0.1.7,<0.2.0>=1.10,<2.2>=3.9,<3.12*indicates an optional dependencyolder versionshyaomegaconfbraceexpand*torch*python0.0.14>=2.1,<3.0>=0.1.7,<0.2.0>=1.10,<2.2>=3.9,<3.120.0.13>=2.1,<3.0>=1.10,<2.1>=3.9,<3.120.0.12>=2.1,<3.0>=1.10,<2.1>=3.9,<3.12ContributingPlease check the instructions inCONTRIBUTING.md.API stability:warning: Whilehyais in development stage, no API is guaranteed to be stable from one
release to the next.
In fact, it is very likely that the API will change multiple times before a stable 1.0.0 release.
In practice, this means that upgradinghyato a new version will possibly break any code that
was using the old version ofhya.Licensehyais licensed under BSD 3-Clause "New" or "Revised" license available inLICENSEfile.