Saravanan666/pypi-org huggingface dataset:
Package: pyjitutils
JitUtilsPower ByDescriptionPackage นี้จัดทำมาเพื่อในการจัดการปัญหาในการแปลง Time stamp ให้อยู่ในรูปแบบ Date time ต่างFeaturesรับค่า Timestampสามารถแปลง Datetime ในหลายรูปแบบต่างๆสามารถแปลง ค.ศ. ให้อยู่ในรูปแบบ พ.ศ. หรือ ฮ.ศ. ได้A reference of all the legal format codes:DirectiveDescriptionExample%aWeekday, short versionWed%AWeekday, full versionWednesday%wWeekday as a number 0-6, 0 is Sunday3%dDay of month 01-3131%bMonth name, short versionDec%BMonth name, full versionDecember%mMonth as a number 01-1212%yYear, short version, without century18%YYear, full version2018%HHour 00-2317%IHour 00-1205%pAM/PMPM%MMinute 00-5941%SSecond 00-5908%fMicrosecond 000000-999999548513%zUTC offset+0100%ZTimezoneCST%jDay number of year 001-366365%UWeek number of year, Sunday as the first day of week, 00-5352%WWeek number of year, Monday as the first day of week, 00-5352%cLocal version of date and timeMon Dec 31 17:41:00 2018%xLocal version of date12/31/18%XLocal version of time17:41:00%%A % character%%GISO 8601 year2018%uISO 8601 weekday (1-7)1%VISO 8601 weeknumber (01-53)01How to using (วิธีนำไปใช้งาน)fromsrcimportJitTimesfromdatetimeimportdatetimefromzoneinfoimportZoneInfotime_stamp=datetime.timestamp(datetime.now())print("time_stamp "+str(time_stamp))# แปลงค่า DateTime ตาม Default formatjitTime=JitTimes(1617867109.1652)print(jitTime)jitTime2=JitTimes(TS=time_stamp)print(jitTime2)# Time Zone# Test failjitTime3=JitTimes(TS=time_stamp,dt_format='%Y',tz_info=None)print(jitTime3.tzInfo())jitTime4=JitTimes(TS=time_stamp,tz_info="Pacific/Kwajalein")print(jitTime4.tzInfo())print(datetime.timestamp(jitTime4.tzInfo()))# การแปลงค่า เป็น พ.ศ. / ฮ.ศ.j1=JitTimes(TS=time_stamp,dt_format="%c",tz_info="America/Los_Angeles")print("ค.ศ. ",j1)j1=JitTimes(TS=time_stamp,dt_format="%c",tz_info="America/Los_Angeles")print("พ.ศ.",j1.buddhistEra())j1=JitTimes(TS=time_stamp,dt_format="%c",tz_info="America/Los_Angeles")print("ฮ.ศ. ",j1.hijriEra())
Package: pyjjasim
PyJJASimCircuit Simulator including Josephson Junctions in PythonInstallationPyJJASim requires numpy, scipy and matplotlibpip install pyjjasimIntroductionPyJJASim is a circuit simulator including Josephson Junctions as components,intended to be used on large Josephson Junction Arrays (JJAs).PyJJASim is specialized in keeping track of Josephson vortices in the circuit.It can also compute static configurations that have vortices at desiredlocations in the circuit.This requires that the circuit is a planar embedding (in 2D), such thatone can unambiguously refer to faces of the circuit, and vortices resideat faces. This imposes that nodes in the circuit must be placedat 2D coordinates, and that no junctions can cross. This also means nohierarchical structure is supported.Featuressupports basic components (inductors, resistors, capacitors and current- and voltage sources)keep track of (and place) Josephson vortices in the circuitcompute static configurationsdetermine dynamic stability of static configurationsmaximize parameters that have stable static configurationscompute time evolutionsdefine external magnetic flux through each facethermal fluctuations modeling nonzero temperaturevisualization and animation of simulation resultsDocumentationtutorial\API\whitepaper(in progress)Example Usagefrompyjjasimimport*sq_array=SquareArray(10,10)problem=StaticProblem(sq_array,frustration=0.1)config,status,info=problem.compute()config.plot(node_quantity="phi")Program output:n=np.zeros(sq_array.face_count())n[sq_array.locate_faces(x=[2.5,6.5],y=[2.5,6.5])]=1config,status,info=problem.new_problem(vortex_configuration=n).compute()config.plot(node_quantity="phi")plt.show()Program output:More examples:figure 1: Example of a frustrated honeycomb array with horizontal current bias.Snapshot of a time evolution; the vortices are drifting downward. The electric potentialgradually increases in the direction of the external current(see examples/images/biassed_honeycomb.py).figure 2: Example of giant Shapiro steps in a square array. The externalcurrent has a DC and AC component causing resonance in the form ofvoltage plateaus (see examples/images/shapiro_steps.py).figure 3: Example of a disordered array with different types of Josephson vortices(see examples/images/disordered.py).If you have any questions, comments, complaints,bug reports, feature requests, etc.please contact me atm.lankhorst89@gmail.com!
Package: pyjjy
pyjjy電波時計の時刻合わせに使用される標準電波JJYをPythonとPyAudioで再現するスクリプトです。
shogo82148氏のweb-jjyと同様に、一般的な機器で出力可能な13.333kHzを出力し、第3高調波がJJYおおたかどや山標準電波送信所の送信波周波数である40kHzとなることを利用しています。
PortAudioとPyAudioに依存します。
動作させるPCの時刻を出力するため、標準時からずれる場合があります。インストールPyIPから最新版をインストール可能です。pip install pyjjy --upgrade使い方10分間のJJY信号を送信する実行方法の例を以下に示します。$ python -m pyjjy -d 600Python内からの呼び出しも可能です。>>>frompyjjyimportJJYsignal>>>jj=JJYsignal(duration=600)>>>jj.play()Mac環境では、例えば次のような運用により自動時刻合わせも可能です。音声出力を"外部ヘッドフォン"に切り替えた後にスリープさせる(Automatorでapp化を推奨)自動受信時刻前にスリープを解除するようスケジュール設定するcronやlaunchdを用いてJJYシグナルを出すスクリプトを自動実行し、"外部ヘッドフォン"からJJY信号を出力するcronやlaunchdを用いてスリープに入るAppleScriptを自動実行する動作環境以下の環境で動作と受信を確認しています。Mac mini (M1, 2020)macOS Monterey 12.0.1portaudio 19.7.0 (installed via homebrew)Python 3.7.6 (installed via miniconda)PyAudio 0.2.11 (installed via conda)アンテナ (AMループアンテナを鉄釘に巻き直したバーアンテナ)電波時計 (CITIZEN AT8181-63E)また、次の環境でも信号出力を確認しています。MacBook Air (Mid 2013)macOS Catalina 10.15.5Python 3.9.7 (installed via miniconda)PyAudio 0.2.11 (installed via pip)Windows環境でも信号出力を確認しています。Windows 11 Pro 21H2Python 3.8.12 (installed via miniconda)PyAudio 0.2.11 (installed via conda)免責事項利用の結果生じた損害について、一切責任を負いません。ライセンスMITライセンスです。LICENSEを参照ください。
Package: pyjkernel
pyjkernelpyjkernelis a high-level implementation of Nintendo's homemade ResourceArchive (RARC) as well as SZS and SZP compression formats. As of now, it's still work in progress.SetupThis library requiresPython 3.6 or neweras well asoead. The latter will be installed automatically. You can use pip to installpyjkernel:pipinstallpyjkernel
Package: pyjks
PyJKS enables Python projects to load and manipulate Java KeyStore
(JKS) data without a JVM dependency. PyJKS supports JKS, JCEKS, BKS
and UBER (BouncyCastle) keystores. Simply:pip install pyjksOr:easy_install pyjksThen:import jks

keystore = jks.KeyStore.load('keystore.jks', 'passphrase')

print(keystore.private_keys)
print(keystore.certs)
print(keystore.secret_keys)And that’s barely scratching the surface. Check outthe usage examples on
GitHubfor
more!
Package: pyjld.logger
This package consists mainly of:* MsgLogger: cross-platform logger with message translation* logger: a *ready-to-go* logger* xcLogger: a cross-platform syslog logger=========Changelog=========**0.7*** Added ''auto-flush'' for all handlers that support it**0.6*** Added support for filters to MsgLogger class**0.5*** Added support for directly logging Exceptions with message_id & params**0.4*** Added daemon cooperation functionality: ``logger`` clears handlers associated with logger ``name``**0.3** More robust ``messages`` look-up in MsgLogger**0.2** Added ``MsgLogger``@author: Jean-Lou Dupont
Package: pyjlib
PyJLibPython Implementation of some of the Java classes.The objects in this library, try to mimic the behavior of their Java counter-part. However,
some Python flavor is also added to them. It is possible that certain extra features are
added to the object.How to installUsing PIPjust issue:pip install pyjlibDocumentationThe documentation is available athttps://pyjlib.readthedocs.io/en/latest/LICENSErefer to the LICENSE file
Package: pyjlyric
pyjlyric: Japanese Lyric AggregatorSupported siteshttps://github.com/eggplants/pyjlyric/issues/4Installationpipinstallgit+https://github.com/eggplants/pyjlyric# orpipinstallpyjlyricUsageCLI$ jrc https://j-lyric.net/artist/a00126c/l013283.html
===
Title:          春よ来い
Artist:         童謡・唱歌
Lyric:          相馬 御風
Composer:       弘田 龍太郎
===
春よ来い早く来い
あるきはじめたみいちゃんが
赤い鼻緒のじょじょはいて
おんもへ出たいと待っている

春よ来い早く来い
おうちの前の桃の木の
蕾もみんなふくらんで
はよ咲きたいと待っている$ jrc -h
usage: jrc [-h] [-V] url

get lyric data by URL.

positional arguments:
  url

options:
  -h, --help     show this help message and exit
  -V, --version  show program's version number and exit

supported sites:
  - ...Libraryimportpyjlyricpyjlyric.parse("https://kashinavi.com/song_view.html?155779")Returns:KashinaviLyricPage(title='Life goes on',page_url=HttpUrl('https://kashinavi.com/song_view.html?155779',),pageid='155779',artist=WithUrlText(link=HttpUrl('https://kashinavi.com/artist.html?artist=104498&kashu=King+%26+Prince&start=1',),text='King & Prince'),composer='Joacim Persson・Johan Alkenas・SQVARE・Sean Michael Alexander',lyricist='木村友威',arranger=None,lyric_sections=[['Keep it up, keep it up yup'],[...],[...,"Let's live it up"]])
Package: pyJMT
pyJMTThe pyJMT package is a Python wrapper for the Java Modelling Tools (JMT) suite, which is used for performance evaluation of systems using queueing network models.
Using this tool one can model and simulate different networks in python.A short getting started guide along with installation instructions can be found onGitHub, with full documentation availablehere.Working on pyJMT:The project can be found onGitHubTo build the documentation locally, in the docs directory runmake htmlthen open index.htmlThe documentation will automatically be built and uploaded to the github pages website on push.To push changes to the package on PyPi, change the version number in conf.py and setup.py, then run the following commands.python setup.py sdist bdist_wheel
twine upload dist/*
Package: pyjn
JSON Ref Resolver for standard JSON Schema with Max and Min Schema GenerationThis is a python package having multiple utilities.Github-flavored MarkdownWarning : All the Files for ref-reslover should be placed under the same folder/dir.
1.pyjn.refsolver: input param (input file path)
2.pyjn.maxjson:input param (json schema dict)
3.pyjn.minjson:input param (json schema dict)#Data Returns in JSON format:
Example :
import pyjn
pyjn=pyjn()
json_pathtest='C:/Users/Entity.json'
print(pyjn.refsolver(json_pathtest))
Package: pyjobana
Find job根据关键字抓取对应岗位信息根据岗位描述找到某岗位所需的条件Getting StartedThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.PrerequisitesWhat things you need to install the software and how to install themGive examplesInstallingA step by step series of examples that tell you how to get a development env runningSay what the step will beGive the exampleAnd repeatuntil finishedEnd with an example of getting some data out of the system or using it for a little demoRunning the testsExplain how to run the automated tests for this systemBreak down into end to end testsExplain what these tests test and whyGive an exampleAnd coding style testsExplain what these tests test and whyGive an exampleDeploymentAdd additional notes about how to deploy this on a live systemBuilt WithDropwizard- The web framework usedMaven- Dependency ManagementROME- Used to generate RSS FeedsContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.AuthorsBillie Thompson-Initial work-PurpleBoothSee also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for detailsAcknowledgmentsHat tip to anyone whose code was usedInspirationetc
Package: pyjob-jdockerty
PyJobPyJob is an abstraction around theReedAPI for job searching.After providing an API key you can interact with the API for finding jobs that have been posted to Reed, either by companies or agencies, as well as the various other functionality that they provide.You can:Searchfor jobsFinddetailsof particular jobs using their IDs, this is used to grab anextendeddescription of the job.Installationpip install pyjob-jdockertyYou will also need to register for aReed APIkey and export this, e.g.export REED_API_KEY=<your_key>CLI UsageA simple search can be conducted using the commandpyjob search --term "software engineer" --max-results 3This displays results for jobs which match the termsoftware engineeraccording to Reed's API, displaying the first 3 results to you.To view available flags, use the--helpflagpyjob search --helpThis provides a greater list of options to pass into the CLI.TODOFinishSearchclass for API interaction.Add CI pipeline.Add custom exceptions for raising errors, currently just exiting on error and printing a log message withsys.exit. Instead will raise exception and move the current logging message to the raised exception.Build out aDetailclass for finding more information around a job with the ID. [Response is similar, just with extended description, using this for now.Create CLI wrapper for this API for job searches on the command line.
Package: py-jobject
py-jobjectA package to easily convert between Python objects and JSON-compatible dictionaries, with built-in type conversion.UsageDeclare a class with type-annotated attributes:classMyObject:foo:intbar:strConvert to adictobject:frompy_jobjectimportto_dictobj=MyObject()obj.foo=123obj.bar='abc'my_dict=to_dict(obj)assertmy_dict=={'foo':123,'bar':'abc'}Convert from adictobject:frompy_jobjectimportfrom_dictmy_dict={'foo':123,'bar':'abc'}obj=from_dict(obj,MyObject)assertobj.foo==123assertobj.bar=='abc'FeaturesSupports type conversion:frompy_jobjectimportfrom_dictmy_dict={'foo':'123',}obj=from_dict(obj,MyObject)assertobj.foo==123
Package: pyjobshop
[!NOTE]
This package is under development. Expect things to break significantly during the v0.0.x phase.PyJobShopPyJobShop is a package for implementing scheduling models in Python.
It supports the classically knownflexible job shop problem(FJSP) and many of its extensions such as arbitrary precedence relations, sequence-dependent setup times, and many more!
The implementation is currently work in progress and V1 is planned to be finished in by April 2024.
Feel free to open an issue if you have any questions.InstallationFirst, clone this repository to your local setup andcdinto it.
Then, make sure you havePoetryversion 1.2+ installed, and run the following command:poetryinstallThis will set-up a virtual environment and install all necessary dependencies.Installing CPLEXRunning the CP model and solving it requires the optimization engine from IBM CPLEX.
Seetheir documentationfor more details.
If you install the free community edition, you can only solve models with up to 1000 variables and 1000 constraints.
Models beyond that size require a paid version or an academic version.
Package: pyjoepegs
pyjoepegspython api client forjoepegsInstallpipinstallpyjoepegsQuick startfrompyjoepegsimportJoepegsAPIapi=JoepegsAPI(api_key=<API_KEY>)actvities_client=api.activities()collections_client=api.collections()items_client=api.items()maker_orders_client=api.maker_orders()owners_client=api.owners()sales_client=api.sales()search_client=api.search()users_client=api.users()
Package: pyjoern
PyJoernA Python frontend and lifter for Joern API, focused on CFG manipulation.InstallThis package requires you to haveJava 19, Graphviz, and Unzipinstalled on your machine before running the
pip installer. In you don't have them on your system, use theinstall_dependencies.shscript found in the source repo.pip3 install pyjoern && pyjoern --installRunningpyjoern --installwill init the Joern package for this first time, which will download the backend.UsageUse PyJoern as a library for lifting source into a CFG.
The IL the source is lifted to is described inJIL.frompyjoernimportfast_cfgs_from_sourcecfgs=fast_cfgs_from_source("tests/source/simple.c")main_func=cfgs["main"]print(main_func.edges)VersioningThe current version of PyJoern can be found in [pyjoern/__init__.py] as__version__.
The point in the version is the PyJoern specific updates.
The first three are the current version of Joern that PyJoern is supporting.Example:__version__="v1.2.18.1"This would mean Joern versionv1.2.18, with PyJoern update1.
Package: pyjokes
pyjokesOne line jokes for programmers (jokes as a service)InstallationInstall thepyjokesmodule with pip.See thedocumentationfor installation instructions.UsageOnce installed, simply callpyjokefrom the command line or add it to your
.bashrc file to see a joke every time you open a terminal.Use the-cflag to get jokes from a specific category. Options:-c neutral [default] (neutral geek jokes)
-c chuck (Chuck Norris geek jokes)
-c all (all jokes)
-c twister (Tongue-twister)You can also access the jokes in your own project by importingpyjokesand
using the functionsget_jokeandget_jokes.Documentation is available athttps://pyjok.es/ContributorsDevelopment:Ben NuttallAlex SavioBorja AyerdiOier EtxanizJokes:Luke WrenSarah BirdYash MehrotraMarc KirkwoodGregory ParkerMartin O’HanlonGraham MarkallAndreas ReinleContributingThe code is licensed under theBSD LicenceThe project source code is hosted onGitHubPlease useGitHub issuesto submit bugs and report issuesFeel free tocontributeto the codeFeel free to contribute jokes (via pull request orproposal issue)See thecontributing policyon GitHubPyjokes SocietyThis project was founded atPySS 2014and is directed by thePyjokes Society.
Package: py-jokes-py
py-jokes-pyPython wrapper for the jokes APIs provided by:icanhazdadjokes.comjokeapi.devHow to installpip install py-jokes-pyUsageSomething to note, thejokesmodule has two classes:DadJokes()- wrapper foricanhazdadjokes.comapiAllJokes()- wrapper forjokeapi.devapiClassDadJokes()This class provides the following methods:random_joke_as_json(self)random_joke_as_text(self)specific_joke_as_json(self, id)specific_joke_as_text(self, id)list_jokes_as_json(self, page, limit, term)list_jokes_as_text(self, page, limit, term)ClassAllJokes()This class inherits from theDadJokesclass, but also provides the following methods:get_joke_json(self, joke_lang, joke_category, joke_flags, joke_type, joke_contains, joke_id, joke_amount)get_joke_text(self, joke_lang, joke_category, joke_flags, joke_type, joke_contains, joke_id, joke_amount)Basic Usagefrom jokes.jokesv2 import AllJokes

jokes = AllJokes()

joke = jokes.get_joke_json()
print(joke)

joke = jokes.get_joke_text()
print(joke)

joke = jokes.random_joke_as_json()
print(joke)

joke = jokes.random_joke_as_text()
print(joke)

joke = jokes.specific_joke_as_json(id="12")
print(joke)

joke = jokes.specific_joke_as_text(id="12")
print(joke)

joke = jokes.list_jokes_as_json()
print(joke)

joke = jokes.list_jokes_as_text()
print(joke)ExampleHere is a simple implementation of this package. Check it out:jokes_cliContributionIf you want to contribute to this project, here are some few steps you can follow:Fork this project's repositoryClone it to your local machineMake the changes you want to make or add the features you want to addWrite tests for the new featuresMake a pull requestThat's just about it.IssuesFor any issus encountered while using this package, feel free to submit a new issuehere.Enjoy! 🤪
Package: pyjo-mongo
pyjo_mongoA light wrapper around pymongo and pyjo to easily interact with MongoDB documents. See the following example.Installpip install pyjo_mongoHow to usefrompymongoimportMongoClientfrompyjoimportModel,Field,RangeField,EnumFieldfrompyjo_mongoimportDocumentdb_connection=MongoClient(MONGODB_URL)[DB_NAME]classGender(Enum):female=0male=1classAddress(Model):city=Field(type=str)postal_code=Field(type=int)address=Field()classUser(Document):__meta__={'db_connection':lambda:db_connection,'collection_name':'users','indexes':[{'fields':['username'],'unique':True,'index_background':True,},['first_name','last_name'],],}username=Field(type=str,repr=True,required=True)first_name=Field(type=str)last_name=Field(type=str)age=RangeField(min=18,max=120)gender=EnumField(enum=Gender)address=Field(type=Address)active=Field(type=bool,default=True)u=User(username='mp')u.id# Noneu.save()u.id# ObjectId('5a5ca86080a9b8291874f4db')# objects is a class property built around a pymongo Cursor# and will allow you to perform basic operationsu2=User.objects.find_one({'username':'mp'})u2.gender=Gender.maleu2.save()u.reload()u.gender# Gender.male# queries use the same syntax of pymongo and automatically return pyjo data modelsforuserinUser.objects.find({'active':True}):print(user)# <User(username=mp)># You can perform ordering operations on querysetsforuserinUser.objects.order_by('gender','-age'):print(user.username)print(user.age)
Package: pyjon
PYJONPyJON is a Python package that gathers all tools required to parse, create and analyze structures in the JON (Just another Object Notation) format.InstallationTo install this package, just launch the following command:pipinstallpyjonDocumentationPyJON examplesthat list all basic usages of this packageJON official documentationto learn more about the JON languageContribution guideto become an active member on the projectContributing to this packageThis package started as personal project, but I welcome community contributions to it. Please follow the contribution guidelines to start working on the project. If you find any problems, please open an issue or create a PR against thePyJON Github repository.You can also reach me by email atme@just1not2.org.LicensingApache License Version 2.0. SeeLICENSEto see the full text.Author InformationThis Python package was created in 2023 byJustin Béra.
Package: pyjon.descriptors
Introductionpyjon.descriptors is a standardized way of describing a file and
to get a generator that yields python objects from that file to your program.The yielded python objects contain attributes that are defined in an
XML schema and their types and content are garanteed by pyjon.descriptors.The provided readers arecsv,xml(specific schema) andfixedlenreaders but more can be written easily.Running the testsinstall the tests requirements:$ pip install --upgrade toxthe run the test suite and generate the coverage report with
the following command:$ toxyou should now have a directory calledcoverage_html_reportwith a file
namedindex.htmlinsidePython 3 compatibilitypyjon.descriptors should work just fine on Python 3.Note about upgrading from previous versions: “dirty” XML files (with custom “rc” tags) are no
longer supported.Contributorsin oder of appeareance on the projectFlorent AideJonathan SchemoulJerôme ColletteMathieu BridonEmmanuel CazenaveHouzéfa Abbasbhay