Saravanan666/pypi-org huggingface dataset:
Package: adi.revertorder
IntroductionSets the position of any new born content-item (Archetypes&Dexterity) to be
the first child of its parent, in order to prepend, instead of appending it,
like it is the default behaviour.Changelog1.3 (2016-11-02)Add missing MANIFEST.1.2 (150924)Also regard Dexterity-based contenttypes.1.1 (150924)Typos, add author.1.0dev (unreleased)Initial release
Package: adi.samplecontent
IntroductionThis package is an add-on for Plone and part of the adi.simplesite-package-bundle.It adds some sample content for simple sites to your portal: Welcome, About and Contact.The default view of the portal will be a link, that redirects to Welcome.Changelog0.3 (2012-12-02)Re-release.0.1dev (unreleased)Sets contact-info-view as default-view for folder ‘contact’Makes contact-info-view available for foldersSets ‘go-to-welcome’ as default-view for the portalAdds a static-text-portlet for the left and right columnAdds a link ‘go-to-welcome’ that directs to ‘welcome’Adds folders ‘welcome’, ‘about’ and ‘contact’Initial release
Package: adiscstudies
This package contains the source files and built models for an "ADI" (Application Data Interface) schema describingsingle cell data collection and analysis studies.ExamplespipinstalladiscstudiesTables and fieldsimportimportlib.resourcesimportpandasaspdwithimportlib.resources.path('adiscstudies','tables.tsv')aspath:tables=pd.read_csv(path,sep='\t')print(tables)Name  ...                                         Entity
                         subject  ...                                  Study subject
                       diagnosis  ...                                Diagnosis event
  diagnostic_selection_criterion  ...                 Diagnostic selection criterion
       specimen_collection_study  ...                   Biospecimen collection study
     specimen_collection_process  ...                 Biospecimen collection process
    histology_assessment_process  ...                   Histology assessment process
...importimportlib.resourceswithimportlib.resources.path('adiscstudies','fields.tsv')aspath:fields=pd.read_csv(path,sep='\t')print(fields[fields['Table']=='Histological structure identification'][['Label','Table','Foreign table','Foreign key','Ordinality',]])Label                                  Table                       Foreign table  Foreign key  Ordinality
     Histological structure  Histological structure identification              Histological structure   Identifier           1
                Data source  Histological structure identification                           Data file  SHA256 hash           2
                 Shape file  Histological structure identification                          Shape file   Identifier           3
Plane coordinates reference  Histological structure identification  Plane coordinates reference system         Name           4
      Identification method  Histological structure identification                                 NaN          NaN           5
        Identification date  Histological structure identification                                 NaN          NaN           6
                  Annotator  Histological structure identification                                 NaN          NaN           7SQLimportimportlib.resourceswithimportlib.resources.path('adiscstudies','schema.sql')aspath:sql_create=open(path,'rt').read()print(sql_create)CREATE TABLE IF NOT EXISTS subject (
    identifier VARCHAR(512) PRIMARY KEY,
    species VARCHAR(512),
    sex VARCHAR(512),
    birth_date VARCHAR,
    death_date VARCHAR,
    cause_of_death VARCHAR
);

CREATE TABLE IF NOT EXISTS diagnosis (
    subject VARCHAR(512) REFERENCES subject(identifier),
    condition VARCHAR,
    result VARCHAR(512),
    assessor VARCHAR(512),
    date VARCHAR
);

...OWLimportimportlib.resourceswithimportlib.resources.path('adiscstudies','schema.owl')aspath:schema=open(path,'rt').read()withopen('schema.owl','wt')asfile:file.write(schema)Then openschema.owle.g. withProtege.
Package: adi.simplesite
Introduction============This is a Plone-4 add-on that aims to help especially smaller sites to get started quicker and easier.The goal is to give the possibility to configure most common website-usecases via the webinterface for mortals. No programming needed.It does this mainly by replacing viewlets with portlets.Most functionalities are pulled in by small splitted plone-add-ons, named below, so you can roll your own combinations, installing them individually, in case you don't need parts of the whole package.The pulled subpackages are:- adi.initDeletes Plone's default contents- adi.simplestructureHides viewlets and adds some samaple portlets instead in top and footer via ContentWellPortlets.- adi.samplecontentAdds some samplecontent and sampleportlets in left- and right column.- adi.slickstyleAdds a decent CSS to the portal, let's you override col, bg-col and link-col globally.- adi.dropdownmenueAdds a main drodwonmenu on top, showing first-level-folders, replaces Plone's globalnav.See their READMES for further details.Change history**************Changelog=========0.5 (2014-03-14)----------------- Corrected missing doc-folder.0.5 (2012-12-02)----------------- Typos in description.0.4 (2012-12-02)----------------- Better description of the package.0.3 (2012-12-02)----------------- Use adi.slickstyle instead of adi.simplestyle as theme.0.2 (2012-05-19)----------------- Corrective release, missing files. [ida]0.1 (2012-05-17)----------------- Show only folders in navigation- Pulls adi.dropdownmenu, adi.samplecontent, adi.init, adi.simplestyle and adi.simplestructure- Initial release
Package: adi.simplestructure
IntroductionThis package is an add-on for Plone and part of the adi.simplesite-package-bundle.Add and place additional elements you need with ContentWellPortlets TTW, no viewlets-hassle.HidesPlone’s default viewlets in top and footer area of the portal and adds some sample portlets there instead.Changelog0.4 (2013-04-10)Re-release on pypi, doc-folder still missing. [ida]0.3 (2012-12-02)Re-release. [ida]0.2 (2012-05-19)Corrective release, missing files. [ida]0.1 (2012-05-17)Initial release
Package: adi.slickstyle
IntroductionThis is a Plone add-on and part of the adi.simplesite-package-bundle.adi.slickstyle is a theme add-on for Plone, which overrides the default styles (namely public.css) with some decent styles and let’s you easily override font-color, link-styles and bg-color globally.See the stylesheet (adi/slickstyle/adi_slick.css) for the collected selectors.Changelog1.0 (2012-12-02)Initial release
Package: adisp
Adisp is a library that allows structuring code with asynchronous calls andcallbacks without defining callbacks as separate functions. The code thenbecomes sequential and easy to read. The library is not a framework by itselfand can be used in other environments that provides asynchronous working model(see an example with Tornado server in proxy_example.py).Usage:## Organizing calling codeAll the magic is done with Python 2.5 decorators that allow for control flow toleave a function, do sometihing else for some time and then return into thecalling function with a result. So the function that makes asynchronous callsshould look like this:@processdef my_handler():response = yield some_async_func()data = parse_response(response)result = yield some_other_async_func(data)store_result(result)Each `yield` is where the function returns and lets the framework around it todo its job. And the code after `yield` is what usually goes in a callback.The @process decorator is needed around such a function. It makes it callableas an ordinary function and takes care of dispatching callback calls back intoit.## Writing asynchronous functionIn the example above functions "some_async_func" and "some_other_async_func"are those that actually run an asynchronous process. They should follow twoconditions:- accept a "callback" parameter with a callback function that they should callafter an asynchronous process is finished- a callback should be called with one parameter -- the result- be wrapped in the @async decoratorThe @async decorator makes a function call lazy allowing the @process thatcalls it to provide a callback to call.Using async with @-syntax is most convenient when you write your ownasynchronous function (and can make your callback parameter to be named"callback"). But when you want to call some library function you can wrap it inasync in place.# call http.fetch(url, callback=callback)result = yield async(http.fetch)# call http.fetch(url, cb=safewrap(callback))result = yield async(http.fetch, cbname='cb', cbwrapper=safewrap)(url)Here you can use two optional parameters for async:- `cbname`: a name of a parameter in which the function expects callbacks- `cbwrapper`: a wrapper for the callback iself that will be applied beforecalling it## Chain calls@async function can also be @process'es allowing to effectively chainasynchronous calls as it can be done with normal functions. In this case the@async decorator shuold be the outer one:@async@processdef async_calling_other_asyncs(arg, callback):# ....## Multiple asynchronous callsThe library also allows to call multiple asynchronous functions in parallel andget all their result for processing at once:@asyncdef async_http_get(url, callback):# get url asynchronously# call callback(response) at the end@processdef get_stat():urls = ['http://.../', 'http://.../', ... ]responses = yield map(async_http_get, urls)After *all* the asynchronous calls will complete `responses` will be a list ofresponses corresponding to given urls.
Package: adispatch
A relatively sane approach to multiple dispatch in Python.Forked from to support and use annotations for dispatch.
This implementation of multiple dispatch is efficient, mostly complete,
performs static analysis to avoid conflicts, and provides optional namespace
support. It looks good too.Example>>>fromadispatchimportadispatch>>>@adispatch()...defadd(x:int,y:int):...returnx+y>>>@adispatch()...defadd(x:object,y:object):...return"%s+%s"%(x,y)>>>add(1,2)3>>>add(1,'hello')'1 + hello'What this doesDispatches on all non-keyword argumentsSupports inheritanceSupports instance methodsSupports union types, e.g.(int, float)Supports builtin abstract classes, e.g.Iterator, Number, ...Caches for fast repeated lookupIdentifies possible ambiguities at function definition timeProvides hints to resolve ambiguities when they occurSupports namespaces with optional keyword argumentsWhat this doesn’t doVararg dispatch@adispatch()defadd(*args:[int]):...Diagonal dispatcha=arbitrary_type()@adispatch()defare_same_type(x:a,y:a):returnTrueInstallation and Dependenciesadispatchsupports Python 3.2+, is pure python and requires no other dependencies.LicenseNew BSD. SeeLicense.LinksFive-minute Multimethods in Python by Guidomultimethods package on PyPIsingledispatch in Python 3.4’s functoolsClojure ProtocolsJulia methods docsKarpinksi notebook: *The Design Impact of Multiple Dispatch*Wikipedia articlePEP 3124 - *Overloading, Generic Functions, Interfaces, and Adaptation*
Package: adi.suite
Adi Suite==========This product will add a content-type 'Suite' to your portal.In a suite you can add several galleries, that will be displayed directly in a fancyboxbox-popup on click.A gallery can contain mixed contenttypes and file-formats and will also show it's items in a fancybox.Previewimages can be provided via the contentleadimage-field of an item.A quickuploadportlet is assigned to every gallery for batch uploading.Currently supported contenttypes in a popup-display:- Images- Files- Pages- News-Items- Links [if URL contains 'youtube' or' 'vimeo', movie will be embedded in a flowplayer-view]Currently supported file-formats in a popup-display:- all common image-formats- mp4 and flv for movies- mp3 for audio- swf for flash-animationsDependencies:- collective.fancybox- collective.contentleadimage- collective.quickuploadFurther credits:- flowplayer  http://flowplayer.org- flashicon   http://www.freeiconsweb.com/Free-Downloads.asp?id=1403 by Barry MienyChange history**************Changelog=========0.6 (2ß3-01-02)-------------------- Added video-embed-support for ATLink-destinations containing 'youtube' or 'vimeo'. [ida]- Show arrow-down on preview-title, if they are longer than one row. [ida]- Make item-title in gal-view a link. [ida]- Vertical alignment for image previews in suite- and gallery-view. [ida]0.5 (2012-09-07)-------------------- Fixed typo [ida]0.4 (2012-08-29)-------------------- Added support for popupview of links directly to target. [ida]0.3 (2012-02-06)-------------------- Removed not used templates. [ida]- Fixed doubled previewimage for galleries. [ida]- Don't show leadimage of a gallery in gallery_view. [ida]0.2 (2011-12-27)-------------------- Assigned quickuploadportlet to galleries- Added previewimages in galleryview using contentleadimages.- Added dependencies to be pulled automaticallycollective.contentleadimagecollective.fancyboxcollective.quickupload0.1 (2011-05-11)-------------------- Initial release
Package: aditam.agent
ContentsDescriptionRequiresOS Independent installationModule installationConfigure the agentDescriptionADITAM is a remote task scheduler which facilitates mass task managing over heterogeneous network.
The project contains :adtitam.core(Python) : the common parts of the Aditam agent and serveraditam.server(Python) : the server in charge of scheduling and distributing the tasksaditam.agent(Python) : the agent handles orders sent by the tasks manager and execute the tasks sent by itaditam web gui(php) : the aditam web interfacehttp://www.aditam.org/downloads/cake.tar.gzThis package contains the agent of the ADITAM project. The agents are installed on every server of the farm.
It handles orders sent by the tasks manager and execute the tasks sent by it.
Then the agent sends an activity report that is stored in database.
Data needed for tasks execution must be available locally or through a network file system.RequiresPython 2.5 :http://www.python.org/download/easy_install :http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-installYou must add C:\Python2.5 and C:Python2.5\Scripts in your Path on Windows.OS Independent installationModule installationEnter in a console:easy_install aditam.agentConfigure the agentEnter in a console:aditam-admin.py --agentFollow the instructions.
Package: aditam.core
ADITAM is a remote task scheduler which facilitates mass task managing over heterogeneous network.
The project contains :adtitam.core(Python) : the common parts of the Aditam agent and serveraditam.server(Python) : the server in charge of scheduling and distributing the tasksaditam.agent(Python) : the agent handles orders sent by the tasks manager and execute the tasks sent by itaditam web gui(php) : the aditam web interfacehttp://www.aditam.org/downloads/cake.tar.gzThis package is the common part of the aditam packages and it contains a script to configure
the agent, the server and the database.
Package: aditam.server
ContentsDescriptionRequiresOS Independent installationModule installationConfigure and install the databaseConfigure the serverDescriptionADITAM is a remote task scheduler which facilitates mass task managing over heterogeneous network.
The project contains :adtitam.core(Python) : the common parts of the Aditam agent and serveraditam.server(Python) : the server in charge of scheduling and distributing the tasksaditam.agent(Python) : the agent handles orders sent by the tasks manager and execute the tasks sent by itaditam web gui(php) : the aditam web interfacehttp://www.aditam.org/downloads/cake.tar.gzThis package contains the server of the ADITAM project. It is in charge of scheduling and distributing the tasks.
Informations are stored in database and gave to the agents when tasks are to be executed.RequiresPython 2.5 :http://www.python.org/download/easy_install :http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-installYou must add C:\Python2.5 and C:\Python2.5\Scripts in your Path on Windows.OS Independent installationModule installationEnter in a console:easy_install aditam.serverConfigure and install the databaseInstall the Python module for your database :http://www.sqlalchemy.org/docs/04/dbengine.html#dbengine_supportedEnter in a console:aditam-admin.py --create-db --config-dbFollow the instructions.Configure the serverEnter in a console:aditam-admin.py --serverFollow the instructions.
Package: adit-client
Adit ClientAboutAdit Client is the official Python client ofADIT (Automated DICOM Transfer).UsagePrerequisitesGenerate an API token in your ADIT profile.Make sure to have the permissions to access the ADIT API.Also make sure you have access to the DICOM nodes you want query.Codeadit_url="https://adit"# The host URL of aditadit_token="my_token"# The generated auth tokenclient=AditClient(server_url=adit_url,auth_token=adit_token)# Search for studiesstudies=client.search_for_studies("ORTHANC1",{"PatientName":"Doe, John"})# The client returns pydicom datasetsstudy_descriptions=[study.StudyDescriptionforstudyinstudies]
Package: adit-dicomweb-client
Adit DICOM Web ClientThis is a simple Wrapper of the DICOM Web Client provided by thedicomweb-clientlibrary.
It is slighly adjusted and restricted to provide a simple python API to the DICOM Web API ofAdit.Installationpipinstalladit-dicomweb-clientUsagefromadit_dicomweb_clientimportAditDicomWebClient# Create a new clientclient=AditDicomWebClient(adit_base_url,# URL to the ADIT serverdicom_server,# AE title of the associated DICOM serverauth_token,# Authentication token for the ADIT server)# Find all studiesstudies=client.find_studies()# Find all series of a studyseries=client.find_series(study_instance_uid)# Find all seriesseries=client.find_series()# Include additional query parametersstudies=client.find_studies({"PatientID":"1001"})# Get a studystudy=client.get_study(study_instance_uid)# Get a seriesseries=client.get_series(study_instance_uid,series_instance_uid)# Get study metadatastudy_metadata=client.get_study_metadata(study_instance_uid)# Get series metadataseries_metadata=client.get_series_metadata(study_instance_uid,series_instance_uid)# Upload pydicom.Dataset instancesclient.upload_instances(instance_list)
Package: adi.trash
Introduction============An addon for Plone, which changes the deletion-behaviour.If a user deletes items, move them to a trashcan-folder named 'trash',living in the upper next available navigation-root-folder – which is usuallythe site-root-folder – instead of really deleting them.Items inside of 'trash'-folders, or trash-folder themselves, will stillbe actually, really, deleted.Missing trash-folders are created on the fly.Immediately after installation you won't see any trash-folders,go on, delete something, they'll appear.After an item has been trashed, its workflow-state is set to 'private',so its content is not unintentionally exposed to the public.Installation============Add 'adi.trash' to the eggs-section of your buildout-config,run buildout, restart instance(s).Then go to the add-on-controlpanel of your site and activate this add-on.Contributors============Ida Ebkes [ida], [idgspro], Aurore Mariscal [amariscal].License=======GPL2, a copy is attached.Changelog for adi.trash=======================0.6 (2018-10-15)----------------- Fix bug on deletion from folder-contents (thanks to 'laulaz' for reporting).[ida]0.5 (2018-09-27)----------------- Set trashed items' workflow-state to 'private' after trashing,so trashed content does not get unintentionally exposed. [ida]- Give temporary Contributor-role to user, for pasting intotrashcan and creating trashcans. Fix #7. [ida]- Include CHANGES in long-description of this egg, so it getsdisplayed on pypi. [ida]0.4 (2018-03-03)----------------- 'ParseResult' object has no attribute 'endswith', fix error.  [amariscal]0.3 (2017-07-27)----------------- Regard URL can contain parameters, fixes #3. [idgserpro]- Add plone.api as a dependency. [idgserpro]0.2 (2017-04-12)----------------- Merge PR from idgserpro, correct repo-URL. [ida]0.1 (2015-11-01)---------------- Initial commit.
Package: adi.ttw_styles
GoalGive people with CSS-skills the ability to apply styles through the
web (TTW), using a simple page as style-source and provide a preview-possibility.UsageFor live-developing the CSS and immediately see the changes,
while to vistors the look will remain unchanged:On top-level of your site add a page, name it ‘ttw_live_styles’,
insert yout CSS-rules in the bodytext-fieild, save page.Add ‘/@@ttw_styles_view’ to any URL of your site and see the changes.For permanently adding the styles to your site and make them visible to everybody:Create a local copy of your style-rules on your computer with a texteditor,
name it ‘ttw_permanent_styles.css’ and upload it as a file on top-level of your site.Note: Permanent changes require to remerge stylesheets for caching,which you can achieve by putting ithe portal_css-debug-mode off,
(accessible via ‘http://localhost:8080/yourPlonesiteId/portal_css/manage_cssForm’).
You might need to ask your siteadministrator to do that for you.InstallationAdd ‘adi.ttw_styles’ to the eggs-section of your instance-part in the buildout-cfg.
Run buildout, restart instance, activate product in a Plonesite via
‘http://localhost:8080/yourPlonesiteId/prefs_install_products_form’.AuthorIda EbkesCreditsLa communidas de PloneChangelog1.1 (2013-07-26)Added MANIFEST.in1.0 (2013-07-26)Initial release
Package: aditya-102103464
TOPSIS Python PackageTOPSIS (Technique for Order Preference by Similarity to Ideal Solution) is a method for multicriteria decision analysis. This Python package provides a simple implementation of TOPSIS for ranking alternatives based on multiple criteria.InstallationYou can install thetopsispackage using pip:pip install topsis-Aditya-102103464Usageimport numpy as np
from topsis-Aditya-102103464 import topsisExample decision matriximport .csv data fileCriteria weightsweights = [1, 1, 1, 1]Impact criteriaimpacts = [True, True, True, True]Perform TOPSIS analysisscores = topsis(matrix, weights, is_benefit)
ranking = np.argsort(scores)[::-1]
print("Scores:", scores)
print("Ranking:", ranking+1)OutputA .csv file containing input columns with two additional columns ie. topsis score and ranking will be generated.