Saravanan666/pypi-org huggingface dataset:
Package: ising
K. Jałowiecki, M. Rams and B. GardasDocumentation:https://ising.readthedocs.io/en/latest/Isingis an open source package for exactly solving abritrary Ising model instances via exhaustive search. It can be used as an excellent tool for benchmarking other solvers or generating low energy spectra. The package is compatible with *NIX systems (and in principle should work on Windows too).Isingsupports parallel computation via OpenMP or GPU, if it was build with CUDA support.Build statusInstallationIf you are running Linux and are interested in CPU-only implementation, you can installIsingfrom Python Package Index.pip install isingFor other installation options, including building with CUDA support, please visit the officialdocumentation.Usage exampleThe below example finds 4 lowest energy states of the Ising model defined by\begin{equation*}
H(s_0, s_1, s_2) = -2s_0s_1 + 3s_1s_2 + 2.5s_2s_3 -s_0
\end{equation*}importisinggraph={(0,1):2,(1,2):-3,(2,3):2.5,(0,0):1}result=ising.search(graph,num_states=4)print(result.energies)For advanced usage, including GPU support and tweaking execution parameters seedocumentation.
Package: isingm
IsingA pythonic implementation of the Ising model.Check the example for more.LatticeThis is the main place of the Ising model,
we have to initialize it with a tuple of the lattice shape that can be of any dimension or size.
The lattice can be initialized with a random state (you can choose the state ratio up) or all in a state 1 or -1.arguments:shape:type:tuple(int)The shape of the lattice is tested for 1 to 4 dimension.
Every values of shape must be > 0Optionnal:all:type:int== 1 or -1Set the state at all 1 or -1 it overpass the r parrameter.r:type:floatin [0, ..., 1]Set a random state with a ratio r of 1 in the lattice (default r = 0.5).adj:type:numpy.arrayA vector of vector: is the representation of the spin interaction.0J0J#J0J0Will be written as [[1,0],[-1,0],[0,1],[0,-1]]As default it's the left right up down direct neighbor matrix will be genereted (whatever this mean in 4 or more dimensions).J:type:numpy.arrayorfloatIs the interraction between spins,
if J is an array he as to be the same length than adj.(you can choose to make anisotropic iteractions !!)B:type:numpy.arrayorfloatIs the magnetic field imposed on the lattice,
if B is an array he as to have the same shape of the latticebeta:type:floatBeta is 1/(Kb * T) with T the absolute temp,
and Kb is the Boltzmann constant.Methodsrandomize(self, ratio=0.5)Randomize th lattice state with a given ratio of up state.arguments:Optionnal:ratio:type:floatin [0, ..., 1]The ratio of up state.all(self, state)Set all the lattice to the same state.arguments:state:type:int== -1 or 1Value of the spin site.H(self)Compute the Hamiltonian of the lattice.returns:Hamiltoniantype:floatHamiltonian of the lattice.hamiltonian(self)Compute the Halmitonian of each spin.returns:local_Hamiltonian:type:numpy arrayThe Hamiltonian calculated for each spin.mH(self)Compute the mean value of the Hamiltonian.returns:type:floatMean value of the Hamiltonian.mag(self)Compute the magnetization of the lattice.returns:Magnetizationtype:floatMagnetization of the lattice.get_B(self)Method to get the magnetic field.returns:B:type:numpy arrayReturn the magnetic field.get_beta(self)Method to get beta.returns:beta:type:floatReturn beta.get_shape(self)Method to get the shape of the latticereturns:shape:type:tuple(float)Return the shape of the latticeget_size(self)Method to get the size of the latticereturns:size:type:floatReturn the size of the latticeget_state(self)Method to get the state of the lattice.returns:state:type:numpy arrayReturn the copy of the state.set_B(self, B)Method to set the magnetic field.arguments:B:type:numpy arrayThe new Magnetic field.set_beta(self, beta)Method to set beta.arguments:beta:type:floatThe new beta.set_state(self, state)Method to set the state of the lattice.arguments:state:type:numpy arrayThe new state.Metropolis.algorithmIs the class who solve the Ising model with theMetropolis algorithmImplementation of the Metropolis algorithmarguments:for the arguments look the lattice class.Methodsstep(self, n=0):step apply the metropolis algorithm on n spin oncearguments:Optional:n:type:intn must be strictly positive is the size of the sample
Package: isingnetworks
Ising Model on NetworksThis is a python package which simulates the Ising model on complex networks.Given any network built using the networkx package as input, this package runs Monte Carlo simulations on random source nodes and evaluates the model according to the Metropolis algorithm, and returns the magnetization and the energy of the system.Version 1.0.2: This has an added visualizer to plot the output graphs.Version 1.0.4: The Github repo has an added ipynb that can be referred to for instructions about usage.Version 1.0.10: A new parallel implementation has been added.Version 1.1.1: Two much faster functions have been added for both serial and parallel simulations.Version 1.1.3: Added functions to calculate Curie temperature and decay time.Version 1.1.4: Added a function to compute average degreeInstallationRun the following to install:pipinstallisingnetworksAdditional packages required:pipinstalljoblibUsageImport the class:fromisingnetworksimportIsingModelCreate a graph (g) using networkx.Create an intance of the IsingModel class:model=IsingModel(g)Using the viz function:model.set_J(val_of_J)model.set_iterations(no_of_iterations)model.set_initial_state(0)# 0 or 1# Serial Implementationmodel.viz(temperature_array)# Parallel Implementationmodel.viz_parallel(temperature_array)# Faster Implementationsmodel.viz_fast(temperature_array)model.viz_fast_parallel(temperature_array)
Package: is-int-even
is-evenReturns true if the number passed is even, returns false if it is not.Inspired bysamuelmarina/is-evenand is the python version of it :)Installingpipinstall-Ugit+https://github.com/sifte/is-int-even.gitExamplefromis_int_evenimportis_evenis_even(0)# trueis_even(1)# trueis_even(2)# true# and so on...  current limit is 125,000
Package: is-isbn
Is ISBNDescriptionIs ISBNprovides a single function to test if a given string is valid ISBN.Installationpip install is-isbnWith pipenv:pipenv install is-isbnUsageImport:from is_isbn.is_isbn import is_isbnUse:is_isbn('978-9941-445-51-4')orImport:from is_isbn import is_isbnUse:is_isbn.is_isbn('978-9941-445-51-4')CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.Free software: MIT licenseDocumentation:https://is-isbn.readthedocs.io.History0.1.0 (2019-08-30)First release on PyPI.
Package: isis-cli
icliDevelopment set upWithout DockerYou need to installpoetryRunpoetry installRunpoetry run python src/main.pyRunpoetry run python src/main.py --name=Batman --count=2Runpoetry run python src/main.py --helpWith DockerPrerequisite: being able to runmakeRunningmakewill show you all the possible actionsDecisions taken and personal notesOrigin of the name:i(si) + clior the typical iAnything :-)Library used:ClickThe examples of code seen look simplerGood opinions in several posts with comparisons with Docopts or ArgparseLooks like a "modern" way of creating a CLI in 2022Used by AWSDependencies withpoetrypoetry show -vpoetry env listTheENTRYPOINTis the execution of the main file.ResourcesVideo tutorial: Building Command Line Applications with Click- 18 minutesClick exampleshttps://github.com/CodiumTeam/docker-traininghttps://jackmckew.dev/packaging-python-packages-with-poetry.htmlhttps://github.com/JackMcKew/wordsumTO DORename to isis-cliPackage it to be installed from PyPI, e.g.pip install icliMake possible to run itIntegrate GitHub action for running testsIntegrate GitHub action for PyPI publicationVersion itUse mypyUse black formatter
Package: isi-sdk-7-2
AboutThis package is part of the Isilon SDK. It includes language bindings
for easier programmatic access to the OneFS API for cluster
configuration (on your cluster this is the REST API made up of all the
URIs underneathhttps://[cluster]:8080/platform/*, also called the
“Platform API” or “PAPI”). The SDK also includes language bindings for
the OneFS RAN (i.e. RESTful Access to Namespace) interface, which
provides access to the OneFS filesystem namespace.Installationpip install isi_sdk_7_2DocumentationThe SDK documentation is auto generated by Swagger Codegen and is
located in theisilon_sdk_pythonrepository. Please select the repository branch that is applicable to
the SDK package and OneFS version for accurate documentation references.
All SDK methods and models are linked from the top level README file.Example programHere’s an example of using the Python PAPI bindings to retrieve a list
of NFS exports from your cluster:frompprintimportpprintimporturllib3importisi_sdk_7_2fromisi_sdk_7_2.restimportApiExceptionurllib3.disable_warnings()# configure username and passwordconfiguration=isi_sdk_7_2.Configuration()configuration.username="YOUR_USERNAME"configuration.password="YOUR_PASSWORD"configuration.verify_ssl=False# configure hostconfiguration.host="https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080"api_client=isi_sdk_7_2.ApiClient(configuration)protocols_api=isi_sdk_7_2.ProtocolsApi(api_client)# get all exportssort="description"limit=50dir="ASC"try:api_response=protocols_api.list_nfs_exports(sort=sort,limit=limit,dir=dir)pprint(api_response)exceptApiExceptionase:print"Exception when calling ProtocolsApi->list_nfs_exports:%s"%eThere are more examples of coding to the Python PAPI bindings in thetestssubdirectory of the repo. The tests currently run against a genericisi_sdkimport which is how the bindings library is named by default
if you build your own bindings. If you want to run the tests against one
of the libraries you’ve downloaded from the prebuilt releases page, you
should change theimport isi_sdklines toimport isi_sdk_7_2orimport isi_sdk_9_0_0depending on which one you downloaded.More infoSee the Github repo for more information:https://github.com/isilon/isilon_sdk
Package: isi-sdk-8-0
AboutThis package is part of the Isilon SDK. It includes language bindings
for easier programmatic access to the OneFS API for cluster
configuration (on your cluster this is the REST API made up of all the
URIs underneathhttps://[cluster]:8080/platform/*, also called the
“Platform API” or “PAPI”). The SDK also includes language bindings for
the OneFS RAN (i.e. RESTful Access to Namespace) interface, which
provides access to the OneFS filesystem namespace.Installationpip install isi_sdk_8_0DocumentationThe SDK documentation is auto generated by Swagger Codegen and is
located in theisilon_sdk_pythonrepository. Please select the repository branch that is applicable to
the SDK package and OneFS version for accurate documentation references.
All SDK methods and models are linked from the top level README file.Example programHere’s an example of using the Python PAPI bindings to retrieve a list
of NFS exports from your cluster:frompprintimportpprintimporturllib3importisi_sdk_8_0fromisi_sdk_8_0.restimportApiExceptionurllib3.disable_warnings()# configure username and passwordconfiguration=isi_sdk_8_0.Configuration()configuration.username="YOUR_USERNAME"configuration.password="YOUR_PASSWORD"configuration.verify_ssl=False# configure hostconfiguration.host="https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080"api_client=isi_sdk_8_0.ApiClient(configuration)protocols_api=isi_sdk_8_0.ProtocolsApi(api_client)# get all exportssort="description"limit=50dir="ASC"try:api_response=protocols_api.list_nfs_exports(sort=sort,limit=limit,dir=dir)pprint(api_response)exceptApiExceptionase:print"Exception when calling ProtocolsApi->list_nfs_exports:%s"%eThere are more examples of coding to the Python PAPI bindings in thetestssubdirectory of the repo. The tests currently run against a genericisi_sdkimport which is how the bindings library is named by default
if you build your own bindings. If you want to run the tests against one
of the libraries you’ve downloaded from the prebuilt releases page, you
should change theimport isi_sdklines toimport isi_sdk_7_2orimport isi_sdk_9_0_0depending on which one you downloaded.More infoSee the Github repo for more information:https://github.com/isilon/isilon_sdk
Package: isi-sdk-8-0-1
AboutThis package is part of the Isilon SDK. It includes language bindings
for easier programmatic access to the OneFS API for cluster
configuration (on your cluster this is the REST API made up of all the
URIs underneathhttps://[cluster]:8080/platform/*, also called the
“Platform API” or “PAPI”). The SDK also includes language bindings for
the OneFS RAN (i.e. RESTful Access to Namespace) interface, which
provides access to the OneFS filesystem namespace.Installationpip install isi_sdk_8_0_1DocumentationThe SDK documentation is auto generated by Swagger Codegen and is
located in theisilon_sdk_pythonrepository. Please select the repository branch that is applicable to
the SDK package and OneFS version for accurate documentation references.
All SDK methods and models are linked from the top level README file.Example programHere’s an example of using the Python PAPI bindings to retrieve a list
of NFS exports from your cluster:frompprintimportpprintimporturllib3importisi_sdk_8_0_1fromisi_sdk_8_0_1.restimportApiExceptionurllib3.disable_warnings()# configure username and passwordconfiguration=isi_sdk_8_0_1.Configuration()configuration.username="YOUR_USERNAME"configuration.password="YOUR_PASSWORD"configuration.verify_ssl=False# configure hostconfiguration.host="https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080"api_client=isi_sdk_8_0_1.ApiClient(configuration)protocols_api=isi_sdk_8_0_1.ProtocolsApi(api_client)# get all exportssort="description"limit=50dir="ASC"try:api_response=protocols_api.list_nfs_exports(sort=sort,limit=limit,dir=dir)pprint(api_response)exceptApiExceptionase:print"Exception when calling ProtocolsApi->list_nfs_exports:%s"%eThere are more examples of coding to the Python PAPI bindings in thetestssubdirectory of the repo. The tests currently run against a genericisi_sdkimport which is how the bindings library is named by default
if you build your own bindings. If you want to run the tests against one
of the libraries you’ve downloaded from the prebuilt releases page, you
should change theimport isi_sdklines toimport isi_sdk_7_2orimport isi_sdk_9_0_0depending on which one you downloaded.More infoSee the Github repo for more information:https://github.com/isilon/isilon_sdk
Package: isi-sdk-8-1-0
AboutThis package is part of the Isilon SDK. It includes language bindings
for easier programmatic access to the OneFS API for cluster
configuration (on your cluster this is the REST API made up of all the
URIs underneathhttps://[cluster]:8080/platform/*, also called the
“Platform API” or “PAPI”). The SDK also includes language bindings for
the OneFS RAN (i.e. RESTful Access to Namespace) interface, which
provides access to the OneFS filesystem namespace.Installationpip install isi_sdk_8_1_0DocumentationThe SDK documentation is auto generated by Swagger Codegen and is
located in theisilon_sdk_pythonrepository. Please select the repository branch that is applicable to
the SDK package and OneFS version for accurate documentation references.
All SDK methods and models are linked from the top level README file.Example programHere’s an example of using the Python PAPI bindings to retrieve a list
of NFS exports from your cluster:frompprintimportpprintimporturllib3importisi_sdk_8_1_0fromisi_sdk_8_1_0.restimportApiExceptionurllib3.disable_warnings()# configure username and passwordconfiguration=isi_sdk_8_1_0.Configuration()configuration.username="YOUR_USERNAME"configuration.password="YOUR_PASSWORD"configuration.verify_ssl=False# configure hostconfiguration.host="https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080"api_client=isi_sdk_8_1_0.ApiClient(configuration)protocols_api=isi_sdk_8_1_0.ProtocolsApi(api_client)# get all exportssort="description"limit=50dir="ASC"try:api_response=protocols_api.list_nfs_exports(sort=sort,limit=limit,dir=dir)pprint(api_response)exceptApiExceptionase:print"Exception when calling ProtocolsApi->list_nfs_exports:%s"%eThere are more examples of coding to the Python PAPI bindings in thetestssubdirectory of the repo. The tests currently run against a genericisi_sdkimport which is how the bindings library is named by default
if you build your own bindings. If you want to run the tests against one
of the libraries you’ve downloaded from the prebuilt releases page, you
should change theimport isi_sdklines toimport isi_sdk_7_2orimport isi_sdk_9_0_0depending on which one you downloaded.More infoSee the Github repo for more information:https://github.com/isilon/isilon_sdk
Package: isi-sdk-8-1-1
AboutThis package is part of the Isilon SDK. It includes language bindings
for easier programmatic access to the OneFS API for cluster
configuration (on your cluster this is the REST API made up of all the
URIs underneathhttps://[cluster]:8080/platform/*, also called the
“Platform API” or “PAPI”). The SDK also includes language bindings for
the OneFS RAN (i.e. RESTful Access to Namespace) interface, which
provides access to the OneFS filesystem namespace.Installationpip install isi_sdk_8_1_1DocumentationThe SDK documentation is auto generated by Swagger Codegen and is
located in theisilon_sdk_pythonrepository. Please select the repository branch that is applicable to
the SDK package and OneFS version for accurate documentation references.
All SDK methods and models are linked from the top level README file.Example programHere’s an example of using the Python PAPI bindings to retrieve a list
of NFS exports from your cluster:frompprintimportpprintimporturllib3importisi_sdk_8_1_1fromisi_sdk_8_1_1.restimportApiExceptionurllib3.disable_warnings()# configure username and passwordconfiguration=isi_sdk_8_1_1.Configuration()configuration.username="YOUR_USERNAME"configuration.password="YOUR_PASSWORD"configuration.verify_ssl=False# configure hostconfiguration.host="https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080"api_client=isi_sdk_8_1_1.ApiClient(configuration)protocols_api=isi_sdk_8_1_1.ProtocolsApi(api_client)# get all exportssort="description"limit=50dir="ASC"try:api_response=protocols_api.list_nfs_exports(sort=sort,limit=limit,dir=dir)pprint(api_response)exceptApiExceptionase:print"Exception when calling ProtocolsApi->list_nfs_exports:%s"%eThere are more examples of coding to the Python PAPI bindings in thetestssubdirectory of the repo. The tests currently run against a genericisi_sdkimport which is how the bindings library is named by default
if you build your own bindings. If you want to run the tests against one
of the libraries you’ve downloaded from the prebuilt releases page, you
should change theimport isi_sdklines toimport isi_sdk_7_2orimport isi_sdk_9_0_0depending on which one you downloaded.More infoSee the Github repo for more information:https://github.com/isilon/isilon_sdk
Package: isi-sdk-8-2-0
AboutThis package is part of the Isilon SDK. It includes language bindings
for easier programmatic access to the OneFS API for cluster
configuration (on your cluster this is the REST API made up of all the
URIs underneathhttps://[cluster]:8080/platform/*, also called the
“Platform API” or “PAPI”). The SDK also includes language bindings for
the OneFS RAN (i.e. RESTful Access to Namespace) interface, which
provides access to the OneFS filesystem namespace.Installationpip install isi_sdk_8_2_0DocumentationThe SDK documentation is auto generated by Swagger Codegen and is
located in theisilon_sdk_pythonrepository. Please select the repository branch that is applicable to
the SDK package and OneFS version for accurate documentation references.
All SDK methods and models are linked from the top level README file.Example programHere’s an example of using the Python PAPI bindings to retrieve a list
of NFS exports from your cluster:frompprintimportpprintimporturllib3importisi_sdk_8_2_0fromisi_sdk_8_2_0.restimportApiExceptionurllib3.disable_warnings()# configure username and passwordconfiguration=isi_sdk_8_2_0.Configuration()configuration.username="YOUR_USERNAME"configuration.password="YOUR_PASSWORD"configuration.verify_ssl=False# configure hostconfiguration.host="https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080"api_client=isi_sdk_8_2_0.ApiClient(configuration)protocols_api=isi_sdk_8_2_0.ProtocolsApi(api_client)# get all exportssort="description"limit=50dir="ASC"try:api_response=protocols_api.list_nfs_exports(sort=sort,limit=limit,dir=dir)pprint(api_response)exceptApiExceptionase:print"Exception when calling ProtocolsApi->list_nfs_exports:%s"%eThere are more examples of coding to the Python PAPI bindings in thetestssubdirectory of the repo. The tests currently run against a genericisi_sdkimport which is how the bindings library is named by default
if you build your own bindings. If you want to run the tests against one
of the libraries you’ve downloaded from the prebuilt releases page, you
should change theimport isi_sdklines toimport isi_sdk_7_2or
corresponding package depending on which one you downloaded. Look athttps://github.com/Isilon/isilon_sdkfor SDK version to OneFS version
mapping.More infoSee the Github repo for more information:https://github.com/isilon/isilon_sdk
Package: isi-sdk-8-2-1
AboutThis package is part of the Isilon SDK. It includes language bindings
for easier programmatic access to the OneFS API for cluster
configuration (on your cluster this is the REST API made up of all the
URIs underneathhttps://[cluster]:8080/platform/*, also called the
“Platform API” or “PAPI”). The SDK also includes language bindings for
the OneFS RAN (i.e. RESTful Access to Namespace) interface, which
provides access to the OneFS filesystem namespace.Installationpip install isi_sdk_8_2_1DocumentationThe SDK documentation is auto generated by Swagger Codegen and is
located in theisilon_sdk_pythonrepository. Please select the repository branch that is applicable to
the SDK package and OneFS version for accurate documentation references.
All SDK methods and models are linked from the top level README file.Example programHere’s an example of using the Python PAPI bindings to retrieve a list
of NFS exports from your cluster:frompprintimportpprintimporturllib3importisi_sdk_8_2_1fromisi_sdk_8_2_1.restimportApiExceptionurllib3.disable_warnings()# configure username and passwordconfiguration=isi_sdk_8_2_1.Configuration()configuration.username="YOUR_USERNAME"configuration.password="YOUR_PASSWORD"configuration.verify_ssl=False# configure hostconfiguration.host="https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080"api_client=isi_sdk_8_2_1.ApiClient(configuration)protocols_api=isi_sdk_8_2_1.ProtocolsApi(api_client)# get all exportssort="description"limit=50dir="ASC"try:api_response=protocols_api.list_nfs_exports(sort=sort,limit=limit,dir=dir)pprint(api_response)exceptApiExceptionase:print"Exception when calling ProtocolsApi->list_nfs_exports:%s"%eThere are more examples of coding to the Python PAPI bindings in thetestssubdirectory of the repo. The tests currently run against a genericisi_sdkimport which is how the bindings library is named by default
if you build your own bindings. If you want to run the tests against one
of the libraries you’ve downloaded from the prebuilt releases page, you
should change theimport isi_sdklines toimport isi_sdk_7_2or
corresponding package depending on which one you downloaded. Look athttps://github.com/Isilon/isilon_sdkfor SDK version to OneFS version
mapping.More infoSee the Github repo for more information:https://github.com/isilon/isilon_sdk