Saravanan666/pypi-org huggingface dataset:
Package: ifbcloud
ifbcloud commandline utilityThis is a commandline utility toquickly get the status of instances launchedstart new instancesstop instancesInstallationpip install ifbcloudUseage:To get the current status, doifbcoud status-u<your_ifb_username>-p<your_ifb_password>To lauch a new instance, doifbcloud start-u<your_ifb_username>-p<your_ifb_password>-n<name_for_your_instance>To see your currently defined disks, doifbcloud disks-u<your_ifb_username>-p<your_ifb_password>To launch an instance and attach the disk nameddisk0, doifbcloud start-u<your_ifb_username>-p<your_ifb_password>-n<name_for_your_instance>-dndisk0To stop an instance, doifbcloud stop-u<your_ifb_username>-p<your_ifb_password>-n<name_for_your_instance>To get a list of available appliances, doifbcloud appliances-u<your_ifb_username>-p<your_ifb_password>To start an appliances different from the default (Docker 16.07), e.g “BIO ComputeNode (16.07.2)”, doifbcloud start-u<your_ifb_username>-p<your_ifb_password>-n<name_for_your_instance>-a"BIO ComputeNode (16.07.2)"More options are available in the subcommands help section.ShortcutsIf you don’t want to repetitively type your username and password (and have it stored in your shell’s history),
you can export the environmental variablesIFB_USERNAMEandIFB_PASSWORDand omit the-uand-poptions.LimitationsYou can attach permanent storage to your new instances, but you first need to manually create the disks
in theIFB cloud storage interface.This utility is not using any public API, just reverse-engineered from the browser’s post requests, so this may
start failing at any time if the IFB upgrades their cloud service.History0.1.2 (2016-10-12)Default appliance ID changed from 215 to 206 (Docker (16.07) )0.1.1 (2016-09-19)Support for selecting appliance (Seeifbcloud appliancesfor a list of available appliances)0.1.0 (2016-09-19)Support specifying permanent disks to attach to instanceSupport disk subcommand to show available disks0.0.2 (2016-09-11)Initial version
Package: ifb-openlink
OpenLink - A gateway for research data management plateformOpenLink is a web application designed to provide the researcher with a clear view of the data associated with each research project.
It reduces the barriers to adopting the FAIR principles and assists researchers in publishing dataOpenLink let's you create links between the structure of a research project described using theISA model(Investigatio, Study, Assay) and multiple data sources.
It supports an evolving collection of data sources including LabGuru, Omero, Seafile, SSH endpoints and Zenodo. It also embed features that facilitate data manipulation and assist researchers in publishing their data.OpenLink has been developped within Institut de Génétique et de Biologie Moléculaire et Cellulaire (IGBMC) at Strasbourg, France.
The proof of concept has been funded by ANR in 2019 and since 2021, The French Institut of Bioinformatic (IFB) is funding OpenLink in order to make it a more mature product.Openlink installationThis section describes the best way to install Openlink.Openlink releases can be downloaded fromPypior onGitLabRequirementsOpenlink requires Python 3.6 or laterInstall openlink packageThe recommended way of installing Openlink is via pip inside a virtual environmentpython3-mvenvvenvsourcevenv/bin/activate
pipinstallifb-openlinkInitializing the Openlink databaseOpenLink supports MariaDB/MySQL, PostgreSQL, and SQLite. See the complete guide onconfiguring Openlinkfor more details. By default, Openlink will use SQLite and create a database file in your current working directory.After configuring your database of choice you must first initialize the Openlink database. This should only be done once:openlinkmigrateAdd a superuser and start openlink serverAdd a superuser account in your database by running the following command:openlinkcreatesuperuserStart Redis Queue workerOpenlink is able to handle asynchronous tasks in the background using RQ workers.
You can find documentation on installing a Redis server onthe Redis websiteOnce Redis is installed and runnning, start OpenLink RQ worker with the following command:pythonopenlinkrqworkerdefaultStart Openlink serverUserunservercommand to quickly start a developpement web server:openlinkrunserverOpenLink is now running.Point your browser tohttp://localhost:8000and login with the super user account you created.LicenseOpenLink is released under the GPLv3 license. See the LICENSE file.
Package: ifcalendar
Timeline charts have always been center of many statistical analysis and
report. In many timeline based statistical analysis, generating reports
by month or week is a common practice. But the standard everyday
Calendar or Georgian Calendar is used which comes with few challenges
that influence business decisions.For example, lets say an entertainment industry, generates majority
sales on saturday and sunday than rest of the weeks. Now lets look at
following calender of 2019. For the sake of understanding, lets say we
generate 0.1 $ Million for Sunday and Saturday2019
      January               February               March
Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa
       1  2  3  4  5                  1  2                  1  2
 6  7  8  9 10 11 12   3  4  5  6  7  8  9   3  4  5  6  7  8  9
13 14 15 16 17 18 19  10 11 12 13 14 15 16  10 11 12 13 14 15 16
20 21 22 23 24 25 26  17 18 19 20 21 22 23  17 18 19 20 21 22 23
27 28 29 30 31        24 25 26 27 28        24 25 26 27 28 29 30
                                            31A simple statistical report would look like followingS.NoMonthEstimated Profit(in Million)Growth(%)1Jan0.802Feb0.803Mar1.025Based on above report one would easily assume that there is 25% growth
in sales. But, the increase in growth due to increase in Profit days not
necessarily due to improvement in sales.When we add count of Saturday and Sunday, the report would look like,.S.NoMonthCount ofSat & SunEstimated Profit(in Million)Growth(%)1Jan80.802Feb80.803Mar101.025As you can see, these differences will becomes significant for business
planning and in statical projection of numbers(profits).International Fixed Calendar(IFC) solves these challenges by having
fixed days in months. In IFC, along with 12 months in Georgian we add
SOL month making it a 13 month Calendar with 4 weeks each.13 Months * 4 Weeks =  13 Months * 24 Days = 364 DaysAs for IFC, 1 extra day is added December as Dec 29 making it 365 days
calendar. For leap years, the International Fixed Calendar inserts the
extra day in leap year as June 29 - between Saturday June 28 and Sunday
Sol 1.Notable Statistical AdvantagesEvery month has exactly 4 weeks8 Saturday & 8 SundaysEvery month starts with SundayEvery month 1 is Sunday and 7 is Saturday and so on all 28 daysAlthough it has several advantages, for everyday practical uses of this calendar has some interesting disadvantages related to holidays dates or extra day of year or the number 13 is a prime and so.on.Looking at benifits of IFC, in this package we offer required tools to convert Georgian dates to IFC.For a deeper understanding we suggest you to go toWikipedia.Disclaimer:This package is developed for educational, experimental and enrichment of statistical analysis purposes only.
Package: ifcclient
Infinite Flight Connect API ClientUsing python to connect the Infinite Flight Connect API v1/v2.Installationpip3installifcclientUsageBefore getting started, make sure to enable the Infinite Flight Coneect in the appSettings > General > Enable Infinite Flight ConnectFirst, import the module in Python and discover devcies in the same network, you can use duration to specific the time to discover, you can use duration=0 to return the first device you discovered.importifcclientdevices=ifcclient.IFCClient.discover_devices(duration=0)API V2Init the client object.ifc=ifcclient.IFClient.connect(devices[0],version=2)# version is 2 by defaultThere are three ways to use the Infinite Flight Connected API V2, GetState, SetState, RunCommand. You can check Infinite Flight website for the detail of API.GetStateTo get a state from the API, send a get_state_by_name() request as follows:ifc.get_state_by_name(name)# For exampleifc.get_state_by_name('aircraft/0/systems/flaps/state')SetStateTo set states -- assigning new values to them -- through the API by sending a request as outlined below.However, not all states can be set and the manifest offers no indication of which states can be set and which can't. The only way to determine this is trial-and-error and some common sense.ifc.set_state_by_name(name,value)# For exampleifc.set_state_by_name('aircraft/0/systems/flaps/state',2)RunCommandTo execute a command through the API, send a run_command_by_name() request.ifc.run_command_by_name(command)# For exampleifc.run_command_by_name('commands/NextCamera')API V1Init the client object for V1.ifc=ifcclient.IFClient.connect(devices[0],version=1)With V1, to send a command, use thesend_commandfunction. The first parameter is the command, the second parameter are the parameters passed to Infinite Flight while the third parameter determines whether to wait for a response or not. Await response is false by default although it must be enabled when expecting a response.ifc.send_command("{CommandName}",[Parameters],await_response=True)ifc.send_command("{CommandName}",[Parameters])# await_response is False by default# For exampleifc.send_command("airplane.getstate",[],await_response=True)ifc.send_command("flightplan.get",[],await_response=True)functions share with v1/v2Two commonly used operations, one is to get the state of the aircraft, the other is to get the flightplan, these two methods, get_aircraft_state() and get_flightplan() which can be used in both V1/V2. It also provides a function display_commands() to list all the avaliable commands.ifc.get_aircraft_state()ifc.get_flightplan()ifc.display_command()Future updates
Package: ifcimglib
ifcimglibInstallRun:pip install .to install this package.How to usecif2lmdbcan be used as follows:Usage: cif2lmdb [OPTIONS] CIF

Options:
  --output FILE       Output filename. If not set, cif-filename is taken with
                      lmdb extension.

  --channels INTEGER  Images from these channels will be extracted. Default is
                      to extract all. 1-based index.

  --names TEXT        Names to assign to channels.
  --debug             Show debugging information. Limits output to 100 first
                      cells.

  --overwrite         Overwrite lmdb if it exists.
  --targets-npy FILE  Numpy binary file containing targets.
  --skip-npy FILE     Numpy binary file containing instances to be skipped.
  --help              Show this message and exit.Here is an example command:cif2lmdb --channels 1 --channels 6 --channels 9 --names BF --names SSC --names BF2 --output tmp.lmdb --debug --overwrite input.cifIt takes input.cif as input and outputs output.lmdb, an lmdb-file containing 100 (see debug flag) 3-channel images with names BF, SSC and BF2.Please see theimglmdb.ipynbnotebook for usage examples of theimglmdbpackage.DockerDocker imagesare available for cif2lmdb (tag cif2lmdb), the jupyter lab environment (tag jupyter-lab-env), and the notebooks in this repository (tag notebooks).For using cif2lmdb, run:docker run --rm -v /path/to/data/dir:/data maximlippeveld/ifcimglib:cif2lmdb [OPTIONS] /data/example.cifFor using the jupyter environment, run:docker run --it -v /path/to/data/dir:/data -v /path/to/your/code/dir:/app -p [your-port]:8888 maximlippeveld/ifcimglib:jupyter-lab-envFur using the notebooks in this repository, run:docker run --it -v /path/to/data/dir:/data -p [your-port]:8888 maximlippeveld/ifcimglib:notebooks
Package: ifCNV
ifCNV : a novel isolation-forest-based package to detect copy number variations from various NGS datasets.InstallationFrom PyPi (recommended)Make sure you have python >= 3.6$python-version
Python3.X.XInstall pip (https://pip.pypa.io/en/stable/installation/).$python-mensurepip--upgradeInstall ifCNV (https://pypi.org/project/ifCNV/)$pipinstallifCNV
Package: ifcollector
ifcollectorA framework for creating complex if statements.pip3installifcollectorHow toWith ifcollector, if statements can be created from lists. For complex if statements,
stating all your conditionals in a list has the advantage of making code more
readable and reuseable.To use it, create a list with all the conditionals that will be evaluated against a single value.
The conditionals can be a function, a boolean expression in the form of a string, or a lambda.
For all boolean expressions and lamdas, the keywordvaluewill be used for the variable being
evaluated.defmatches_email_regex(value):match_object=search(r'^(\w|\.|\_|\-)+[@](\w|\_|\-|\.)+[.]\w{2,3}$',value)returnbool(match_object)is_valid_gmail=["len(value) > 5","'@' in value",matches_email_regex,"'gmail.com' in value"]my_email="jeff.gruenbaum@gmail.com"ififandstatement(my_email,*is_valid_gmail):print("The email is valid!")Output:The email is valid!
Package: ifconf
Integrated Framework for ConfigurationAlternative configuration framework using argparse and configparser.
Designed for the following purposes.Integration of command line args and configuration filesGeneration of default configuration filesClass initialization procedure using parameter object patternSAMPLEmain.pyfrom ifconf import configure_main
  if __name__ == "__main__":
          configure_main()server.pyfrom ifconf import configure_module, config_callback

  @config_callback
  def conf(loader):
      loader.add_attr('server_addr', '0.0.0.0', help='server inet addr to bind')
          loader.add_attr_int('server_port', 8080, help='server inet port to bind')
          loader.add_attr_boolean('udp', False, help='True if use UDP otherwise TCP is used.')
          loader.add_attr_float('val_float', 0.8, help='float test value')
          loader.add_attr_dict('val_dict', {'a':1,'b':2,'c':3}, help='dict test value')
          loader.add_attr_list('val_list', [1,2,3], help='list test value')
          loader.add_attr_path('home', '../', help='path test value')

  class MyClass:
          def __init__(self):
                  self.conf = configure_module(conf)
                  self.addr = self.conf.addr
                  self.port = self.conf.port
                  self.conf.logger.info(self.conf)config.ini[server_conf]
  #addr = 0.0.0.0
  port = 8888config file generationYou can print config.ini templatepython -m ifconf server.configInstallYou can install this package by pippip3 install ifconfIf you need to use 'mutable' option, install 'recordclass' as well.pip3 install ifconf recordclassIf you got an error such as 'error: command 'x86_64-linux-gnu-gcc' failed with exit status 1', you need to install build essentials.sudo apt-get install build-essential libssl-dev libffi-dev python3-dev
Package: ifctester
ifctesterWithIfcTester, you can author and readInformation Delivery Specification-IDS- files and validate your IFC models against IDS to see if your model is compliant. After the audit, you can generate reports in console, as a web page, JSON or BCF file. It works from the command line, as a web app, or as a library.How to use itimportifcopenshellfromifctesterimportids,reporter# create new IDSmy_ids=ids.Ids(title="My IDS")# add specification to itmy_spec=ids.Specification(name="My first specification")my_spec.applicability.append(ids.Entity(name="IFCWALL"))property=ids.Property(name="IsExternal",value="TRUE",propertySet="Pset_WallCommon",datatype="IfcBoolean",uri="https://identifier.buildingsmart.org/uri/.../prop/LoadBearing",instructions="Walls need to be load bearing.",minOccurs=1,maxOccurs="unbounded")my_spec.requirements.append(property)my_ids.specifications.append(my_spec)# Save such IDS to fileresult=my_ids.to_xml("SampleIDS.xml")# open  IFC file:my_ifc=ifcopenshell.open("MyIfcModel.ifc")# validate IFC model against IDS requirements:my_ids.validate(my_ifc)# show results:reporter.Console(my_ids).report()
Package: ifctruss
IfcTrussNoteIfcTruss is currently in the beta stage and is subject to a feature
freeze until the end of February. Its main goals are stabilizing the
API and improving documentation based on user feedback.PurposeIfcTruss is an open source
(LGPL-3.0-or-later)
software library for creating and calculating trusses in theIndustry
Foundation Classes
(IFC)standard. More precisely, the IFC 4.3 version is supported. This version
is anISO
standard.The following main functions are provided for building, viewing and
solving a truss model in IFC:ifctruss.build
ifctruss.view
ifctruss.solveThere are also a few additional side functions that can be used:ifctruss.save_ods_template
ifctruss.save_xlsx_template
ifctruss.build_from_ods
ifctruss.build_from_xlsx
ifctruss.save_resultTwo solvers are available for calculating the trusses. These solvers can
also be used below without IFC:ifctruss.solver.direct_stiffness_method
ifctruss.solver.calfemGo to theGetting
Startedpage to learn more about using this library.FeedbackIf you have any bugs, improvements, or feature requests, please submit
an issue. Use theOSArch forumto share
anything else. When you share something in theOSArch
forum, put the library name in the tag.
So that someone else has it easier, if they are looking for a post in
theOSArch forumregarding this
library.If you have nothing to share, however, like this library, juststarit! This is a great encouragement for the contributors.Code of conductThis project adheres to the Code of Conduct adapted from theContributor Covenant, version
2.1, available athttps://www.contributor-covenant.org/version/2/1/code_of_conduct.html.ChangelogAll notable changes to this project will be documentedin this
file.The format is based onKeep a
Changelog, and this project
adheres toSemantic Versioning.LicenceCopyright © 2023-2024 IfcTruss ContributorsThis program is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at
your option) any later version.This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
General Public License for more details.You should have received a copy of the GNU Lesser General Public License
along with this program. If not, seehttps://www.gnu.org/licenses/.
Package: ifdo
ifdo-pyifdo-py is a Python library for theiFDOfile format.InstallpipinstallifdoUsageRead/write iFDO filesfromifdoimportiFDO# Read from YAML fileifdo_object=iFDO.load("path/to/ifdo.yaml")# Write to YAMLifdo_object.save("path/to/ifdo.yaml")Create image annotationsfromdatetimeimportdatetimefromifdo.modelsimportImageAnnotation,AnnotationCoordinate,AnnotationLabel# Create a bounding boxcoordinates=[AnnotationCoordinate(x=0,y=0),AnnotationCoordinate(x=1,y=0),AnnotationCoordinate(x=1,y=1),AnnotationCoordinate(x=0,y=1),]# Create a label for itlabel=AnnotationLabel(id="fish",annotator="kevin",created_at=datetime.now(),confidence=0.9)# Pack it into an annotationannotation=ImageAnnotation(coordinates=coordinates,labels=[label],shape='rectangle')# Print it as a dictionaryprint(annotation.to_dict()){'coordinates':[{'x':0,'y':0},{'x':1,'y':0},{'x':1,'y':1},{'x':0,'y':1}],'labels':[{'id':'fish','annotator':'kevin','created-at':datetime.datetime(2023,2,28,16,39,46,451290),'confidence':0.9}],'shape':'rectangle'}
Package: if-dsl-gui-ai
Jezik i alat za kreiranje IF (Interactive Fiction) igara sa grafickim korisnickim interfejsom uz dodatak generisanja slika na osnovu tekstaInstaliranjePre same instalacije ovog alata, potrebno je instalirati PyTorch, koji je neophodan za rad sa modelima vestacke inteligencije. Možete ga instalirati pomocu sledece komande:pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118**Napomena**
Neophodno je posedovanje graficke kartice sa CUDA jezgrimaNakon toga takodje u konzoli pokrecete sledecu komandu:pip install if-dsl-gui-aiInicijalno postavljanjeNakon instalacije, potrebno je da u root direktorijumu svog projekta kreirate direktorijum sa nazivomif_dsl_gui_ai.U novokreiranom direktorijumu kreirati jos jedan sa nazivomgames.(ostatak je opcionalan ukoliko želite da imate primer igre)Ugamesfolderu kreirajte novi folder sa nazivomsimpleGame.game.UsimpleGame.gameprekopirajte sledece stvari izvenv/Lib/site-packages/if_dsl_gui_ai:Slike:backyard.png,entryway.png,hallway.png,kitchen.pngIF igru:simpleGame.gameUputstvo za pokretanje projektaImportujtemainizif_dsl_gui_ai.U vas kod dodajtemain.App().Pokrenite vasu aplikaciju.Kako i sta?Za pregled svih igara i izbor za igranje birateLibrary.Za kreiranje novih IF igrica, birateCreateFiction.Za igranje IF igre, idite uLibrary, izaberite igru, a zatim kliknite dugmePlay.Za kreiranje slika za vasu IF igru, izaberite igru, zatim kliknite dugmePicture creator.Za pregled koda vase IF igre, idite uLibrary, izaberite igru, a zatim kliknite dugmeLoad code.Struktura projektagameFrame.py: Ova datoteka sadrži kod koji upravlja grafickim interfejsom za igranje igrica.gameInterpreter.py: U ovom fajlu se kreiraju Python klase interpretiranjem informacija dobijenih parsiranjem igrica napisanih ugameWorldDSL.tx.gui.py: Ova datoteka sadrži kod za graficki interfejs koji se sastoji od pocetnog ekrana, dela za kreiranje IF, dela za
ucitavanje koda igrica i izbora igara za igranje, kao i dela za kreiranje slika igre.main.py: Startni fajl.pictureCreatorFrame.py: GUI za kreiranje slika IF igre.codeEditorFrame.py: Code editor za pisanje IF igre.simpleGame.game: Ovo je primer jedne igre napisane ugameWorldDSL.tx-u.gameWorldDSL.tx: Ova datoteka sadrži opis Domain-Specific Language (DSL) kojim je moguce pisati igre.dslClasses.py: Ovaj fajl sadrži Python interpretaciju klasa definisanih ugameWorldDSL.txformatu.##DodatnoZa brzi rad aplikacije skiniteStable diffusionsa sajtahuggingfaceZatim je potrebno da kreirate novuEnvironment variable-u sa nazivomSDV5_MODEL_PATHi vrednoscu koja predstavlja putanju doStable diffusion-a na vasem racunaru