Saravanan666/pypi-org huggingface dataset:
Package: hjimi-tools
hjimi_toolsPython Package Setup ScriptThis script is a utility for automatically setting up a new Python package structure. It creates a directory structure for the package, as well as several important files such as `pyproject.toml`, `README.md`, `LICENSE`, and `requirements.txt`.UsageTo use this script, you simply need to run it with Python and pass the name of the package you want to create as a command line argument. For example:```bash
python setup_package.py --package_name hjimi_tools
```This will create a new directory called `hjimi_tools` with the following structure:```
hjimi_tools/
├── src/
│   └── hjimi_tools/
│       └──init.py
├── test/
├── pyproject.toml
├── README.md
├── LICENSE
└── requirements.txt
```Command Line ArgumentsThe script accepts several command line arguments for customizing the package:`package_name`: The name of the package to set up. This is a required argument.`--version`: The version of the package. Defaults to '0.0.1'.`--description`: The description of the package. Defaults to 'A small example package'.`--author`: The author of the package. Defaults to 'Example Author'.`--author_email`: The email of the author. Defaults to 'author@example.com'.`--homepage`: The homepage URL of the package. Defaults to 'https://github.com/YOUR_USERNAME/YOUR_REPOSITORY'.`--bug_tracker`: The bug tracker URL of the package. Defaults to 'https://github.com/YOUR_USERNAME/YOUR_REPOSITORY/issues'.RequirementsThis script requires Python 3.8 or higher.C Project GeneratorThis Python class,CProjectGenerator, is a utility for automatically setting up a new C project structure. It creates a directory structure for the project, as well as several important files such asmain.c,MakefileorCMakeLists.txtdepending on the chosen build system.Class InitializationTheCProjectGeneratorclass is initialized with the following parameters:project_name: The name of the project to set up. This is a required argument.modules: The names of the modules to be created. This is an optional argument and defaults to an empty string.build_system: The build system to use. This can be either 'make' or 'cmake'. Defaults to 'make'.Example:gen=CProjectGenerator("my_project","module1 module2","cmake")Directory StructureThe following directory structure will be created:my_project/
├── src/
│   └── main.c
├── include/
├── lib/
├── bin/
├── obj/
├── test/
└── docs/Generated FilesThe class will generate amain.cfile in thesrc/directory as well as aMakefileorCMakeLists.txtin the project root directory depending on the chosen build system. If modules are specified, corresponding.cand.hfiles will be created in thesrc/andinclude/directories respectively.UsageTo use this class to generate a project, you simply need to create an instance of the class and call thegenerate_projectmethod. For example:gen=CProjectGenerator("my_project","module1,module2","cmake")gen.generate_project()This will create a new project with the specified name, modules and build system.
Package: hjoin
Early-stage code for horizontal text joining. That means obeying
the line breaks and implicit columns in the given strings,
rather than simply appending them linearly.fromhjoinimport*fromcolorsimport*r=red('this perhaps\nand\nthat')b=blue('and\none\nmore\nthing')g=green('yet\nanother\n')print(hjoin([r,b,g]))NotesThis module isnotready for prime time. It’s currently
published solely to enable distributed testing (CI pipeline).
You shouldn’t use it, depend on it, or expect anything
specific from it. Especially don’t expect its API will remain
constant.
Package: hj-reachability
hj_reachability: Hamilton-Jacobi reachability analysis inJAXThis package implements numerical solvers for Hamilton-Jacobi (HJ) Partial Differential Equations (PDEs) which, in the context of optimal control, may be used to represent the continuous-time formulation of dynamic programming. Specifically, the focus of this package is on reachability analysis for zero-sum differential games modeled as Hamilton-Jacobi-Isaacs (HJI) PDEs, wherein an optimal controller and (optional) disturbance interact, and the set of reachable states at any time is represented as the zero sublevel set of a value function realized as the viscosity solution of the corresponding PDE.This package is inspired by a number of related projects, including:A Toolbox of Level Set Methods (toolboxls, MATLAB)An Optimal Control Toolbox for Hamilton-Jacobi Reachability Analysis (helperOC, MATLAB)Berkeley Efficient API in C++ for Level Set methods (beacls, C++/CUDA C++)Optimizing Dynamic Programming-Based Algorithms (optimized_dp, python)InstallationThis package accommodates differentJAXversions (i.e., CPU-only vs. JAX with GPU support); if accelerator support is desired you should first install JAX according to the relevantinstallation instructions. A minimum JAX version requirement is listed inrequirements.txt, but in general this package should be compatible with the latest JAX releases (pleasefile an issueif you find that this is no longer the case!).If you only want CPU computation or have already installed JAX with your preferred accelerator support, you may install this package using pip:pip install --upgrade hj-reachabilityTODOsAside from the specific TODOs scattered throughout the codebase, a few general TODOs:Single-line docstrings (at a bare minimum) for everything. Test coverage, book/paper references, and proper documentation to come... eventually.Look into usingjax.pmap/jax.lax.ppermutefor multi-device parallelism; see, e.g.,jax demo notebooks.Incorporate neural-network-based PDE solvers; see, e.g.,Bansal, S. and Tomlin, C. "DeepReach: A Deep Learning Approach to High-Dimensional Reachability." (2020).
Package: hjs
hjsis a thin wrapper aroundhjson>>>fromhjsimporthjs,load,loads,dump,load>>>da=loads("""
... {
...    a: 1
...    b: are you ok with it ?
...    c: '''
...       what a rest,
...       isn't it ?
...       '''
...    t: {
...        a: you get the point, now :-)
...    },
...    values: 42
... }
... """)>>>assertda['values']==42>>>assertda.t.a=="you get the point, now :-)"install as usual withpip install hjsBy the way, you should supportpypi, because, given the strategic importance of this project, it iswayunder budgeted, as I heard…Regards,
@CJC_2017.
Package: hjson
hjson-pyHjson, a user interface for JSONHjson works with Python 2.5+ and Python 3.3+ (based onsimplejson)Installationpip install hjsonor download fromhttps://pypi.python.org/pypi/hjsonCommandlineUsage:
  hjson [options]
  hjson [options] <input>
  hjson (-h | --help)
  hjson (-V | --version)

Options:
  -h --help     Show this screen.
  -j            Output as formatted JSON.
  -c            Output as JSON.
  -V --version  Show version.E.g.echo'{"json":"obj"}'| hjsonUsageimporthjsonDecoding Hjsontext="""{
  foo: a
  bar: 1
}"""hjson.loads(text)Result:OrderedDict([('foo','a'),('bar',1)])Encoding Python object hierarchieshjson.dumps({'foo':'text','bar':(1,2)})Result:{
  foo: text
  bar:
  [
    1
    2
  ]
}Encoding as JSONNote that this is probably not as performant as the simplejson version.hjson.dumpsJSON(['foo',{'bar':('baz',None,1.0,2)}])Result:'["foo",{"bar": ["baz", null, 1.0,2]}]'APIhjson-py
Package: hjxdataconverter
HJXDataConverterPython command line program for converting data between json, html and excel. We have four different commands:excel2json,json2excel,html2json, andjson2html.excel2jsonexcel2jsonconverts an excel document to a json file.Usage:excel2json inputfile outputfilewhere the inputfile can be an excel file, path or url, and the outputfile is the name of the json file which will be created.Example:excel2json file.xlsx file.jsonexcel2json https://url file.jsonjson2exceljson2excelconverts a json file to an excel document.Usage:json2excel inputfile outputfilewhere the inputfile can be a json file, path or url, and the outputfile is the name of the excel document which will be created.Example:json2excel file.json file.xlsxjson2excel https://url file.xlsxhtml2jsonhtml2jsonconverts a html file to a json file.Usage:html2json inputfile outputfilewhere the inputfile can be a html file, path or url, and the outputfile is the name of the json file which will be created.Example:excel2json file.html file.jsonexcel2json https://url file.jsonjson2htmljson2htmlconverts a json file to a html file.Usage:excel2json inputfile outputfilewhere the inputfile can be a json file, path or url, and the outputfile is the name of the html file which will be created.Example:json2html file.json file.htmljson2html https://url file.html
Package: hk1980
hk1980Grid coordinates conversion library in Python between Hong Kong 1980 Grid System and World Geodetic System 1984InstallationUse the package managerpiporpoetryto install foobar.pipinstallhk1980orpoetryaddhk1980Usagefromhk1980importLatLon,HK80hku=LatLon(22.284034,114.137814).to_hk80()print(hku.northing,hku.easting)# 836303.204 818195.94print(hku.x,hku.y)# 818195.94 836303.204hku=HK80(northing=816128,easting=832243).to_wgs84()print(hku.latitude,hku.longitude)# 22.42944514 113.98124272print(hku.x,hku.y)# 113.98124272 22.42944514ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: hk80
HK80Hong Kong 1980 Grid coordinates conversion library in Python. This library
provides a simple API for coordinates conversion between Hong Kong 1980 Grid
and WGS 84. Underlying conversions are performed usingpyproj.Installationpipinstallhk80Usage>>>fromhk80importLatLon,HK80>>>hku=LatLon(22.284034,114.137814).to_hk80()>>>(hku.northing,hku.easting)(816128.2739028323,832242.6232703187)>>(hku.x,hku.y)(832242.6232703187,816128.2739028323)>>>hku=HK80(northing=816128,easting=832243).to_wgs84()>>>(hku.latitude,hku.longitude)(22.284031525857237,114.13781766034742)LicenseMIT
Package: hkbot
HKBOT Automationa program created to help complete tasks from hkbot telegramList of Hkbot Telegramnonamecurrencylink1Earn TRX or Advertise - HKBotTRXhttps://t.me/hkearn_trx_bot2Earn BCH or Advertise - HKBotBCHhttps://t.me/hkearn_bch_bot3Earn BNB or Advertise - HKBotBNBhttps://t.me/hkearn_bnb_bot4Earn LTC or Advertise - HKBotLTChttps://t.me/hkearn_ltc_bot5Earn USDT or Advertise - HKBotUSDThttps://t.me/hkearn_usdt_bot6Earn DOGE or Advertise - HKBotDOGEhttps://t.me/hkearn_doge_bot7Earn ETH or Advertise - HKBotETHhttps://t.me/HKEarnETHBot8Earn BTC or Advertise - HKBotBTChttps://t.me/HKEarnBTCBotInstall Requirementsinstall python languageinstall python library manager (pip)Windowsdownload python fromhttp://python.org(already including python library manager)Linuxsudo apt update
sudo apt upgrade
sudo apt install python3 python3-pipInstall / Build Programjust type this command below in command line (terminal / cmd)Windowspython -m pip install hkbotLinuxpython3 -m pip install hkbotRun Programfirst create the config with command belowhkbot-create-configsecond, run the main commandhkbot
Package: hk-bus-eta
HK Bus Crawling (a.k.a. hk-bus-eta)This project is to fetch the bus route information of KMB, CTB, NLB, minibus, MTR, lightrail into one single JSON. It is daily synced to data.gov.hk and launched in gh-pages.Fetching Transport ETAThe package is a python vertion for the npm packagehk-bus-eta.InstallationTo install the package,pipinstallhk-bus-etaUsageFetch ETAs of a routefromhk_bus_etaimportHKEtahketa=HKEta()etas=hketa.getEtas(route_id="TCL+1+Hong Kong+Tung Chung",seq=0,language="en")print(etas)"""[{'eta': '2023-09-12T11:43:00+08:00', 'remark': {'zh': '1號月台', 'en': 'Platform 1'}, 'co': 'mtr'}, {'eta': '2023-09-12T11:51:00+08:00', 'remark': {'zh': '1號月台', 'en': 'Platform 1'}, 'co': 'mtr'}, {'eta': '2023-09-12T11:58:00+08:00', 'remark': {'zh': '1號月台', 'en': 'Platform 1'}, 'co': 'mtr'}, {'eta': '2023-09-12T12:05:00+08:00', 'remark': {'zh': '1號月台', 'en': 'Platform 1'}, 'co': 'mtr'}]"""List Route IDsfromhk_bus_etaimportHKEtahketa=newHKEta()route_ids=list(hketa.route_list.keys())print(route_ids)"""['1+1+CHUK YUEN ESTATE+STAR FERRY', '1+1+Central (Hong Kong Station Public Transport Interchange)+The Peak (Public Transport Terminus)', '1+1+Felix Villas+Happy Valley (Upper)', '1+1+Happy Valley (Upper)+Felix Villas', '1+1+Kowloon Bay (Telford Gardens)+Sai Kung', '1+1+Mui Wo Ferry Pier+Tai O', '1+1+STAR FERRY+CHUK YUEN ESTATE', '1+1+Sai Kung+Kowloon Bay (Telford Gardens)', '1+1+Tai O+Mui Wo Ferry Pier', '1+1+The Peak (Public Transport Terminus)+Central (Hong Kong Station Public Transport Interchange)']"""Crawling by yourselfUsageDaily fetched JSON is ingh-pagesor direct downloadhereInstallationTo install the dependencies,pip install -r ./crawling/requirements.txtData FetchingTo fetch data, run the followings,python ./crawling/parseHoliday.py
python ./crawling/ctb.py
python ./crawling/kmb.py
python ./crawling/nlb.py
python ./crawling/lrtfeeder.py
python ./crawling/lightRail.py
python ./crawling/mtr.py
python ./crawling/parseJourneyTime.py
python ./crawling/parseGtfs.py
python ./crawling/gmb.py
python ./crawling/matchGtfs.py
python ./crawling/cleansing.py
python ./crawling/mergeRoutes.pyCitingPlease kindly state you are using this app asHK Bus Crawling@2021, https://github.com/hkbus/hk-bus-crawlingWaypoint dataYou may refer to the repositoryHK Bus WayPoints CrawlingContributorsChunLaw
Package: hkdf
This module implements the HMAC Key Derivation function, defined athttp://tools.ietf.org/html/draft-krawczyk-hkdf-01There are two interfaces: a functional interface, with separate extract
and expand functions as defined in the draft RFC, and a wrapper class for
these functions.Functional interfaceTo use the functional interface, pass the pseudorandom key generated
byhmac_extract([salt],[input key material])tohmac_expand(...).saltshould be a random, non-secret, site-specific string, but may be
set to None. See section 3.1 of the HKDF draft for more details.In addition to the PRK output byhmac_extract(),hmac_expand()takes aninfoargument, which permits generating multiple keys based on the
same PRK, and alengthargument, which defines the number of bytes
of output key material to generate.lengthmust be less than or equal
to 255 time the block size, in bytes, of the hash function being used.
See section 3.2 of the HKDF draft for more information on using theinfoargument.The hash function to use can be specified for bothhmac_extract()andhmac_expand()as thehashkw argument, anddefaults to SHA-512as implemented
by the hashlib module. It must be the same for both extracting and expanding.Example:from binascii import unhexlify
prk = hkdf_extract(unhexlify(b"8e94ef805b93e683ff18"), b"asecretpassword")
key = hkdf_expand(prk, b"context1", 16)Hkdfwrapper classTo use the wrapper class, instantiate theHkdf()class with a salt, input
key material, and optionally, a hash function. Note thatthe default hash function
for the wrapper class is SHA-256, which differs from the default for the functional
interface. You may then callexpand([info],[length])on the Hkdf instance to
generate output key material:kdf = Hkdf(unhexlify(b"8e94ef805b93e683ff18"), b"asecretpassword", hash=hashlib.sha512)
key = kdf.expand(b"context1", 16)Changelog0.0.3 – Move documentation from module docstring to README.rst0.0.2 – Python 3.3, 3.4 support0.0.1 – Initial releasePlease report any bugs athttps://www.github.com/casebeer/python-hkdf
Package: hkfdb
Hong Kong Finance DatabaseTo install the latest version:pip install hkfdbBefore you start, please make sure you have done the following:subscribethe data from our websiteget the personal authTokencreate an client object from class Databasehave fun!create client object with authToken and class Database:import hkfdb

authToken = 'personal_authToken'
client = hkfdb.Database(authToken)Major FunctionsPrice Data:get_hk_stock_ohlc()get_us_stock_ohlc()get_hk_fut_ohlc()get_hk_deri_daily_market_report()CCASS Data:get_ccass_all_id()get_ccass_by_code()get_ccass_holding_rank()get_ccass_by_id()get_ccass_by_id_change()Index list:get_spx_index_const()get_hk_index_const()get_hk_stock_plate_const()get_all_hk_index_name()get_all_hk_stock_plate_name()Earning Calendar:get_us_earning_calendar_by_date()get_us_earning_calendar_by_code()get_hk_earning_calendar_by_code()get_hk_earning_calendar_by_date()Other:get_hk_market_cap_hist()get_hk_ipo_hist()get_north_water()get_market_highlight()get_hk_buyback_by_date()get_hk_buyback_by_code()get_basic_hk_stock_info()
Package: hkgfinder
hkgfinderFind housekeeping genes in prokaryotic (meta)genomesIntroductionhkgfinder is a fast and accurate housekeeping gene finder and classifier. hkgfinder can run on raw sequences, genomes and metagenomes. The novel value of this method lies is in its ability to directly predict and classify gene sequences into housekeeping gene families at a high specificity and sensitivity, while being also faster than genome and metagenome annotator on genome and metagenome data.How hkgfinder worksInstallationYou will have first to installProdigalandHMMER 3to be able to run hkgfinder.hkgfinder since v0.2 is without external dependencies.pipinstallhkgfinderTestTypehkgfinder -hand it should output something like:usage: hkgfinder [options] [<FILE>]

options:
  -o [FILE]      output result to FILE [stdout]
  -g             activate genome mode [false]
  -m             activate metagenome mode [false]
  --faa FILE     output matched protein sequences to FILE [false]
  --fna FILE     output matched DNA sequences to FILE [false]
  -s             output sequences in file by gene [false]
  -t INT         number of threads [1]
  -q             decrease program verbosity
  -d             enable debug mode
  -v, --version  show program's version number and exit
  -h, --help     show this help message and exitInvoking hkgfinderhkgfinder --faa housekeeping.faa --fna housekeeping.fna file.fa.gzhkgfinder supports gzip, lzma, bz2 and zstd compressed files.BugsSubmit problems or requests to theIssue Tracker.LicenceMIT.AuthorAnicet Ebou
Package: hkibg-qcloud-cos-keeper
#hkibg qlcoud cos keeperThe purpose of this package is to provide scripts for handling log and
data files, it can upload the scripts to tencent cloud cos automaticallythree scripts are included in this package:qcloud_cos_keeper_file_cleaner.py (clean up files older than a user defined time)qcloud_cos_keeper_file_rotator.py (move file with a date extension)qcloud_cos_keeper_file_uploader.py (upload the file to qcloud cos)
Package: hkis
HackInScience CLIThis is a POC of what we could do on command line:$hkislist
Djangoview
HelloWorld
Print42Numberofsecondsinayear
Usingoperators
Characterscounting
...

$hkisgetPrint42Downloadedprint-42.py,youcanuploaditbackusing:hkischeckprint-42.py

$hkischeckprint-42.py
Yourcodeprintednothing,didyouforgottocallthe[print](https://docs.python.org/3/library/functions.html#print)function?

$echo'print(42)'>>print-42.py
$hkischeckprint-42.py`42`istheanswer.Welldone!
Package: hk-libs
hk_libs [PYTHON]간단한 python 라이브러리 모음by Heekang ParkRequirementsPython 3 이상Installationpipinstallhk_libsDocumentationhk_libs.printfromhk_libsimportprintprint("Hello World!")print.success("Success!")print.error("Error!")print.warning("Warning!")print.info("Info!")print.debug("Debug!")Makeprintcolorful with.success(),.error(),.warning(),.info(),.debug()methods.You can still useprintas usual as well.print함수를 사용할 때,.success(),.error(),.warning(),.info(),.debug()메소드를 사용하여 색상을 입힐 수 있습니다.한편 여전히 일반적인 용도로print함수를 사용할 수도 있습니다.hk_libs.HKDictfromhk_libsimportHKDictx=HKDict.from_dict({"a":1,"b":2,"c":{"d":3,"e":4,},"f":[1:{"g":5,"h":6,},10:{"i":7,"j":8,}]})print(x.a)# 1print(x["b"])# 2print(x.c.d)# 3print(x.c["e"])# 4print(x.f[1].g)# 5print(x.f[1]["h"])# 6print(x.f[10].i)# 7print(x.f[10]["j"])# 8WithHKDict, you can access dictionary keys with both dict-like syntax(ex.x["a"]) and object-like syntax(ex.x.a).HKDictautomatically convert nested dictionary as instance as well.HKDict를 사용하면,dict와 유사한 문법(ex.x["a"])과 객체와 유사한 문법(ex.x.a)을 모두 사용할 수 있습니다.또한, 중첩된dict도 자동으로HKDict인스턴스로 변환합니다.Changelogv1.0최초 버전hk_print모듈 추가v1.1AttrDict모듈 추가v1.2package name 변경 : hk_utils -> hk_libsfile name 변경 : AttrDict.py -> HKDict.py, hk_print.py -> HKPrint.pyclass name 변경 : AttrDict -> HKDictHKDict 기능 추가, 버그 수정
Package: hklpy
hklpyNameDownloadsVersionPlatformsPyPIControls for using diffractometers within theBluesky
Framework.Based on thehklC library (described here aslibhkl), with
slightly cleaner abstractions when compared to the auto-generatedgobject-introspectionclasses. Integrates with ophyd
pseudopositioners.Referenceshklpy documentation:https://blueskyproject.io/hklpylibhklmain repository:https://repo.or.cz/hkl.git(GitHub repois a shadow copy rarely
synchronized with the main repository.)Bluesky framework documentation:https://blueskyproject.ioConda RecipesInstall the most recent build:conda install hklpy -c conda-forgeThe recipes forlibhkl(hkl) andhklpyare available in the following
conda-forge feedstocks:https://github.com/conda-forge/hkl-feedstockhttps://github.com/conda-forge/hklpy-feedstock
Package: hkmcodepy-hkmconfig
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![LinkedIn][linkedin-shield]][linkedin-url]@HkmCodePy Framework - Configuration SystemAn awesome Configuration package, you can add to your  projects!Report Bug·Table of ContentsAbout The PackageBuilt WithGetting StartedPrerequisitesInstallationUsageRoadmapContributingLicenseContactAcknowledgmentsAbout The Project![Product Name Screen Shot][product-screenshot]There are many great Frameworks packages in python available on GitHub; however, I didn't find one that really suited my needs so I created this enhanced one. I want to create a Python Framework so amazing that it'll be the last one you ever need -- I think this is it.Here's why:Your time should be focused on creating something amazing. A project that solves a problem and helps othersYou shouldn't be doing the same tasks over and over like creating a Cofiguration file from scratchYou should implement DRY principles to the rest of your life :smile:Of course, no one Framework will serve all projects since your needs may be different. So I'll be adding more in the near future. You may also suggest changes by forking this repo and creating a pull request or opening an issue. Thanks to all the people have contributed to expanding this Framework!Use theCode buttonto get started.(back to top)Built WithThis section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.HkmCodePy Framework(back to top)Getting StartedThis is an example of how you may give instructions on setting up your project locally.
To get a local copy up and running follow these simple example steps.PrerequisitesThis is an example of how to list things you need to use the software and how to install them.pipaptinstallpython3-pipInstallationClone the repogitclonehttps://github.com/hakrichTech/HkmCodePy.gitInstall packagepython3setup.pyinstall(back to top)ContributingContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make aregreatly appreciated.If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull Request(back to top)LicenseDistributed under the GNU License. SeeLICENSE.txtfor more information.(back to top)Contacthakeem code  - [@hakrichTech ](https://github.com/hakrichTech-hakeemshamavu@hakrichteam.comProject Link:https://github.com/hakrichTech/HkmCodePy(back to top)