Saravanan666/pypi-org huggingface dataset:
Package: archetypes.linguakeywordwidget
IntroductionThis addon is an archetypes multilingual keyword widget for Plone.How to useAs any widget for Archetypes:from Products.Archetypes.atapi
from archetypes.linguakeywordwidget.widget import LinguaKeywordWidget
atapi.Schema((
  atapi.LinesField('subject',
     multiValued=1,
     accessor="Subject",
      widget=LinguaKeywordWidget()),
))How it worksKeywords are stored in catalog but prefixes with language code before write
and unprefixed before display. It means if you have widget / viewlet /view
that access to data you must first remove language that way:keywords = context.Subject()
linguakeywords = []
language = context.Language()
for keyword in value:
    if keyword.startswith('%s-' % language):
        linguakeywords.append(keyword[len(language) + 1:])
    else:
        linguakeywords.append(keyword)
return linguakeywordsredomino.keywordaliaskeywordalias achieve same goal in a different way. With keyword alias
your keywords are translated in backoffice. With linguakeywords you have
just different keywords.CreditsCompaniesCIRB / CIBGContact CIRBPlanet Makina CorpusContact Makina CorpusPeopleJeanMichel FRANCOIS aka toutpt <toutpt@gmail.com>Changelog1.1 (2013-01-16)Add a workaround to make collectKeyword script support field added with schemaextender.Rename the collectKeyword script to getLinguaKeywords to not conflict existings instanceAdd tests1.0 (2012-11-02)Fix issue when no keyword exists and no one is added by the user1.0a3 (2012-07-10)Fix issue on collectKeywords1.0a2 (2012-05-22)remove span log in edit mode1.0a1 (2012-05-22)Initial release
Package: archetypes.markerfield
IntroductionThis packages contains a single Archetypes field that can manage one or
more marker interface on an object.It is most often used witharchetypes.schemaextenderto add a field to
a type which controls new optional behaviour.ExampleThis example adds a new item to the settings fieldset for an object
which controls an ICategory marker interface:class FolderExtender(object):
    """Add a new 'category' field to all Archetypes based folder types.
    """
    adapts(IBaseFolder)
    implements(ISchemaExtender)

    fields = [
            InterfaceMarkerField("category",
                schemata = "settings",
                interfaces = (ICategory,),
                widget = BooleanWidget(
                    title = _(u"label_category",
                                default=u"Is this folder a category."),
                    description = _(u"help_category",
                                default=u"This should briefly explain what "
                                        u"categories are used for."),
                    ),
                ),
            ]


    def __init__(self, context):
        self.context = context


    def getFields(self):
        return self.fieldsChangelog1.1 - 2011-04-07Extracted a non-schemaextender version of the field to its own class.
[hannosch]PEP8 cleanup.
[hannosch]1.0 - 2008-11-06Initial release
[wichert]
Package: archetypes.memberdatastorage
IntroductionA facade storage for Archetypes which delegates to
a Plone site’s Memberdata Tool for storing content
item field values as memberdata properties.This heavily relies on name magic.
It is assumed that the correponding member and content
instances have corresponding ids. Correspondence is established
with the help ofProducts.PlonePAS.utils.[de]cleanId- the
same way Plone 4 uses to keep track of member folders.The use case driving its development has been to support
custom Archetypes-based content types which can be used
as home folders for members and mirroring some of the
member properties. That way, people can change member
properties by editing their home folder settings.archetypes.memberdatais used in production onhttp://www.incf.org.UsageIn your Archetypes schema definition you can use theMemberPropertyFieldinstead of a regular StringField to get and set the field’s value in a
corresponding member property. Per default, a property with the same
name as the field is used unless themember_property_idis set to point
to a different property.For other field types one can useMemberdataStorageas well as long as
the data type can be handled by the member data tool.Changelog1.1 (2011-03-29)Don’t break if email login is enabled [raphael]Extend test coverage to also check for member property changes
being picked up in “content space” [robin].1.0 - 2009-04-03Adding test suite [raphael].Adding MemberpropertyField for convenience [raphael].Breaking this out of ResearchCommunitySite to make it more accessible
(from r15354 - yes, no changes in three years) [raphael].
Package: archetypes.multifile
Introductionarchetypes.multifile is a Plone Archetype Field which allows to upload multiple files.UsageInstall package by adding the egg into your buildout cfg:[instance]
...
eggs =
    archetypes.multifile
zcml =
    archetypes.multifileRerun buildout and start the instanceInstall via quickinstallerUse it in your custom Archetypes content type:from archetypes.multifile.MultiFileField import MultiFileField
from archetypes.multifile.MultiFileWidget import MultiFileWidget

MultiFileField('file',
           primary=True,
           languageIndependent=True,
           storage = AnnotationStorage(migrate=True),
           widget = MultiFileWidget(
                     description = "Select the file to be added by clicking the 'Browse' button.",
                     label= "File Some Text",
                     show_content_type = False,)),TODOAdd testsKNOWN BUGSPasses required validation even if no file is attachedCreditsThis package was built upon a MultiFile product byPartecs Participatory Technologieshttp://www.partecs.comEggified by
Matous Horahttp://dms4u.czIndexation feature by
Quadra Informatique - Jonathan Ribouxhttp://www.quadra-informatique.frChangelog1.5 - (2010-10-20)Fixed compatibility with Plone4 - safe tabindex [Yves Cadour]1.4 - (2010-04-16)Added french translationThe field is now indexable in portal_catalog (each file text datas are
extracted using portal_transform and concatenated)[Jonathan Riboux - Quadra Informatique]1.3 - (2010-01-06)Moved helping input into upload_file macro - fixes widget when creating a new object [Cleber J Santos]Added pt_BR translation [Matous Hora]1.2 - (2009-10-23)Added Danish translation [Matous Hora]1.0 - (2009-10-20)Initial release [Matous Hora]
Package: archetypes.multilingual
IntroductionThis egg adds plone.app.multilingual support to Archetypes.For more information, please visit:https://github.com/plone/plone.app.multilingualChangelog3.0.9 (2021-10-07)Bug fixes:Prevent installation on Python 3, as we know Archetypes does not work there.
[maurits] (#3330)3.0.8 (2019-12-27)Bug fixes:Fix export of components by adding a__name__property to the handler.
[maurits] (#27)3.0.7 (2019-08-27)Bug fixes:Fix test dependency for Plone 5.2
[jensens] (#28)3.0.6 (2017-11-24)Bug fixes:Hide uninstall from site setup screen.
[jensens]3.0.5 (2017-06-03)Bug fixes:removed unittest2 dependency.
[kakshay21]3.0.4 (2016-11-18)Bug fixes:Better, narrative name in GS profile [jensens]3.0.3 (2016-08-15)Fixes:Use zope.interface decorator.
[gforcada]3.0.2 (2016-02-26)Fixes:Removed transaction commit in integration test.  [gforcada]3.0.1 (2015-07-18)Any AT object can be adapted to ILanguage (not just ATContentTypes).
[ebrehault]3.0 (2015-03-26)Adapt archetypes.multilingual to work on Plone 5
[bloodbare]1.3dev - UnreleasedRemove archetypes.testcase test dependency.
[timo]Remove PloneLanguageTool dependency.
[timo]1.2 - 2013-09-24Add french translations1.0 - 2013-04-16Correct js url on portal_factory babel view [ramon]Show selector if num languages is large [pysailor]1.0rc1 - 2013-01-26Update .po files and .potFix some failing testsBumped version to match the others [sneridagh]1.0b3 - 2012-10-04Added tests [sneridagh]Solved bugs on subscribers [ramon]Tuned AT babel view [ramon]Monkey language field [ramon]1.0a1 - 2012-04-03Added needed babel view template [sneridagh]Language independent field implementation [jcbrand]ILanguage implementation [awello]
Package: archetypes.querywidget
IntroductionArchetypes.querywidget implements a widget for creating catalog queries using an
email-filtering-like interface, as found in GMail or Apple Mail.Changelog1.1.3 (2016-08-12)Bug fixes:Fix base_url variable when editing a collection.
[rodfersou]Added ‘safe_unicode’ call for raw query values.
[rodfersou]1.1.2 (2014-11-05)Added ‘SelectionWidget’, a single selection widget.
[gbastien]1.1.1 (2014-09-07)Declare the correctyapplication/javascriptcontenttype for the@@datepickerconfigview.
[thet]Add acustom_queryparameter toQueryField.getmethod, which allows
for run time customization of the stored query, e.g. by request parameters.
[thet]1.1 (2014-07-10)Support for jQuery 1.7+, including 1.9. Drop support for jQuery 1.4.
[thet]1.0.10 (2014-01-27)QueryBuilderinstance is now obtained using ZCA, so other add-ons
will be able to customize it
[keul, cekk]1.0.9 (2013-08-13)Fix CSS to ensure that multiple selection widgets are accessible and visible
to the user.
[davidjb]1.0.8 (2013-03-06)Hide the test_fixture profile from @@plone-addsite view.
[esteele]1.0.7 (2013-01-24)Bugfix: Handle vocabularies with integers as values,
seehttp://dev.plone.org/ticket/13421[frapell]1.0.6 (2012-10-11)Fixed link path reference of querywidget.js for the qunit tests
[ichimdav]Improved multiselection widget readability by sorting its returned values
[ichimdav]Fixed overly long selection lists by displaying scrollbars for multiselection
widgets
[ichimdav]Fixed conditional initialization of querywidget,
seehttp://dev.plone.org/ticket/12529[kroman0]1.0.5 (2012-09-08)fixedhttp://dev.plone.org/ticket/13144raw get returns persistent
querystring on .get(context, raw=True)
[jensens]1.0.4 (2012-08-14)Added initially missing RelativePathWidget widget macro
[petschki]call the “@@querybuilder_html_results” view on collection context
[petschki]1.0.3 (2012-06-29)Get date field values from the widget instead of the field, as the field isn’t
yet updated at this point in the event call.
[esteele]Properly handle finding/removing multiselection widgets, which are nested in
dls.
Seehttp://dev.plone.org/ticket/12964[esteele]1.0.2 (2012-04-15)Accept an optional ‘brains’ parameter for the field’s get method which
says to return normal catalog results instead of an IContentListing.
[davisagli]Show currently-selected sort index.
[esteele]Move querywidget widgets into browser views so we’re not redefining the
same template code in 3 places.
[esteele]Add a relative date widget.
[esteele]Fix errors in widget’s dict access in edit template.
[esteele]Render the “Remove line” via a view instead of creating it in javascript,
so that we can localize it.
Refshttp://dev.plone.org/ticket/12377[esteele]1.0.1 (2011-08-25)I18n fixes.
[vincentfretin]1.0 - 2011-07-19Initial release.Add MANIFEST.in.
[WouterVH]
Package: archetypes.recurringdate
IntroductionThis package provides a custom Archetypes field and widget to
manage recurring dates.It’s currently in a proof-of-concept state to gather feedback
about a more user-friendly interface for recurring events.Changelog0.2 (2010-01-28)Fixed an issue with IE8 where all boxes had no defined width.
[deo]Made sure to keep the package version always in sync.
[deo]0.1 (2009-11-16)Initial release.
[deo]
Package: archetypes.rolefield
Introduction============An Archetypes field that manages local roles. It can be used to assignspecific local roles through the edit form.Usage-----An example field definition... RoleField(...     'responsible,...     role = 'Owner',...     widget = SelectionWidget(...         label = 'Responsible',...     ),... ),The available parameters are:- 'role': the managed role that will be assigned to users;- 'target_expression': An expression returning the target objectwhere local roles should be assigned. If None (default), contextwill be used as target.- 'allow_protected_roles': Allow the user to change protectedroles for himself. Default is False.- 'protected_roles': Roles that a user shouldn't be able tochange for himself, if 'allow_protected_roles' is True.Default is ('Manager', 'Owner').- 'filter_groups': Filter users/groups by group. If None, nofilter is made. Only used if vocabulary is None and so thedefault vocabulary is used.- 'principals': Possible values are 'users' (default), 'groups'and 'all'. Only used if 'vocabulary' is None and so the defaultvocabulary is used.Read archetypes/rolefield/tests/rolefield.text for more details.Installation------------Add archetypes.rolefield to your buildout configuration. Install theproduct in Plone through the Add-on products control panel.Credits-------Ricardo Alves <rsa at eurotux dot com>Eurotux Development Team <udp at eurotux dot com>License-------Read docs/LICENSE.GPLChangelog=========0.1 - a1----------------- First working version with tests.[igbun]- Initial import[igbun]
Package: archetypes.schematuning
This package speeds up Archetypes Schemas and is a patch forProducts.Archetypes.It uses plone.memoize to cache Archetypes Schemas instead of factoring and
modifying them every time they’re accessed. Factoring a schema is usually fast
but in an average Plone Site, the ATDocument’s schema, for example, is accessed
about 80 times per request. So caching it still makes sense, even if a single
call is fast. With schematuning, ATDocument in PythonProfiler (which linearly slows
down whole Python) came down from 1.518s down to 0.084s for Schema calls. This
makes it roughly 18 times faster.HistoryRoché Compaan and Hedley Roos found while working on one if their projects
several performance issues. One of it was the often repeated BaseObject.Schema()
method. Read about it on theMailing-List.LicenseGNU General Public License, GPLAuthorsHedley Roos (tests, better cache-key, invalidation)Jens Klein (initial code, maintainer) <dev@bluedynamics.com>ContributorsJC Brand <jc@opkode.com>
Package: archetypes.searchwidget
Custom archetypes searchwidget for Plone 3. uses collective.searchtool (z3c.form) to generate
search form. all its magic does with help of collective.jqueryui.Enjoy.History0.1.8 - 29/04/2009FIX: single reference field bug [shakka]0.1.7 - 28/04/2009FIX: javascript for submiting forms was not picking <select… [shakka]FIX: clear option was not working [garbas]0.1.6 - 24/04/2009FIX: ‘popup_heigh’ was set for width [garbas]0.1 - initial release
Package: archetypewsgi
Archetype?Everything you need to build and manage API SubscriptionsArchetype is a powerful, reliable purchase server with cross-platform support. Our open-source framework provides a backend and a wrapper around Stripe to make implementing API keys and creating quotas and subscriptions easy.Whether you are building a new API or already have millions of customers, you can use Archetype to:Fetch products, make purchases, and check subscription status with ournative SDKs.Host andconfigure productsremotely from our dashboard.Analyze the most important metrics for your app businessin one place.See customer transaction histories, chart lifetime value, andgrant promotional subscriptions.Sign up toget started for free.Getting started resourcesWith Archetype, you can keep track of all your app transactions in one place — whether your customers are charged through iOS, Android, or the web. As the single source of truth for your app business, we make sure your users’ subscription status is always up to date.Here are a few ways to get started:Jump right in with ourQuickstart GuideUseour APIto create or modify customers.Ready to start building?Simplified payments for your API are just a few lines of code away.Sign up tolaunch your API todayExplore the docs
Package: archey4
Archey4 is amaintainedfork of the original Archey Linux system tool.
The original Archey program had been written by Melik Manukyan in 2009, and quickly abandoned in 2011.
At first, it only supported Arch Linux distribution, further support had been added afterwards.
Many forks popped in the wild due to inactivity, but this one attends since 2017 to succeed where the others failed:
Remainmaintained,community-drivenandhighly-compatiblewith yesterday’s and today’s systems.
Package: archfinder
ArchFinder - mirrorlist builderA script that writes a mirrolist of Arch Linux mirrors, according with your preferences, e.g. countries, delay, sync time and protocols (https, ipv4...). This project was made just for learning purposes.Dependenciespipurllib3Installationpip install archfinderUsage- API# Example

# Creates a pool that keeps track one connection 
fetcher = MirrorsFetcher()

# Downloads json file containing all mirrors and decodes it
mirrors = fetcher.parseJsonMirrors()

# Filter by protocols, countries...
filter = Filter(mirrors)
filter.filterByHttps()
filter.filterByLocation(["Portugal", "SpAiN", "US"])
mirrors = filter.mirrors

# Sort mirrors by delay or sync time...
sort = Sort(mirrors)
sort.sortByDelay()
mirrors = sort.mirrors

# Writes the mirrorlist and stores in the current directory
writer = MirrorlistWriter(changer.mirrors)
writer.writeMirrorlist(writeNormal=True)- Command linearchfinder [ARGS...]orpython -m archfinder [ARGS...]Arguments-h, --help            
Show this help message and exit

-p <protocol>, --protocol <protocol>
Specifies the protocol used [ http | https | rsync]

-l <name or code>, --location <name or code>
Indicates the countries (by name or code) where each mirror 
resides. If more than one is passed, you should write with 
commas without spaces: Germany,Spain. Furthermore, if some 
country has two or more names, you must write the list inside 
quotation marks: "Portugal,United States".

-i <ipv>, --internet-protocol <ipv>
Specifies which internet protocol version is used 
by each mirror [ipv4 | ipv6 | ipv4,ipv6]    

-o, --isos            
Searches for mirrors with ISOs

-d, --delay           
Sort by average mirroring delay

-a, --duration-average
Sort by duration average it took to connect 
and retrieve the last_sync file from url

-s, --duration-standard
Sort by the lowest standard deviation of the 
connect and retrieval time

-g, --group-by-country
Group mirrors by country

-n <value>, --number-of-mirrors <value>
The max number of mirrors (> 0) to write in the mirrorlist

-t <hour>, --time-distance <hour>
Filters by elapsed time range (1..24) between the current 
and the last mirror sync (current - sync < range). This 
operation ignores mirrors whose synchronization has more 
than one day. Also the ones that doens't contain any info 
about last sync (empty string) are placed last

-v, --version         
Show program's version number and exitNotes of usage- Through the command lineYou can only choose a sort method;Grouping by countries is a type of sort method.Changes0.0.3 (17-7-2021)Minor fix of entry_points on setup.py0.0.2 (13-7-2021)README.md "Usage - Command Line" correction0.0.1 (13-7-2021)First release.
Package: arch-github-package
arch-github-packageConvert GitHub project releases to Archlinux package, with autoupdate.WhyA lot of packages in Archlinux's AUR are just a single PKGBUILD file that downloads the
latest release from GitHub, and many of them are human-maintained, which means that they
are not updated as soon as a new release is published.This script provides an alternative. If a GitHub project has binary releases, it can
automatically download a release tarball, create a PKGBUILD file, makepkg, and install it.
It can also rebuild the package if a new release is found.Installationpipxinstallarch-github-packagepipx installs the package in a virtualenv, so it doesn't pollute your system.You can also use pip:pipinstall--user--break-system-packagesarch-github-package(This will install the package in your user site-packages, not really breaking system packages.)UsageInstall a packageagpinstall<github-repo>Example:agpinstallcortesi/devdHow does it work:It looks for the latest release on GitHub.It tries to find a pre-built package for your system, by looking
for keywords like "linux", "x86-64", "x86_64", "amd64", "gnu" in
the release assets.It downloads the tarball, extracts it, and tries to dertermine which
file goes where. E.g.:If a file is ELF, or its x modbit is set, it goes to/usr/bin.Files like *.1.gz go to/usr/share/man.README.* go to/usr/share/doc/<package-name>.LICENSE goes to/usr/share/licenses/<package-name>.It creates a PKGBUILD file, and runsmakepkg -sito build and install it.
The package name is<github-project-name>-github. E.g.,ortesi/devdbecomesdevd-github.List installed packagesagplistCheck for upgradesagpupgradeYou can also useagp upgrade <package-name>to upgrade a single package.Note: if you run this command repeatively in quick succession, it will hit
GitHub's rate limit for anonymous API access.Uninstall a packageagpuninstall<package-name>If you uninstall an -github package withpacman, it will still be listed byagp list.
So remember to useagp uninstallto remove it.InternalsPackage metadataMetadata is stored under~/.local/share/arch-github-package.
Package: archi
ArchiMulti-format archive library based onlibarchive. Forked frompyarchiveUsageimportarchiwithopen("test.tgz","rb")asf:archive=archi.Archive(f)forfileinarchive:print(file.filename)print(file.read())Keep in mind that youcan'tstoreEntrys, they're freed as soon as the loop moves on to the next or ends. So this won't do:archi=archi.Archive('file.zip')files=[fforfinarchi]files[0].filename# Address boundary error !Changelogv0.2.3(wheels) Upgrade bundled libarchive tov3.4.3v0.2.2(wheels) Upgrade bundled libarchive tov3.4.2(wheels) Build macOS wheels on macOS 10.14 (https://github.com/whtsky/archi/pull/6)v0.2.1(wheels) Upgrade bundled libarchive tov3.4.1v0.2.0Add support for libarchive'sARCHIVE_FAILEDerroruse PyMem_Malloc & PyMem_Free instead of allocav0.1.1Fix binary wheels for macOSTODOcompressionbuild wheels for Windows:https://discuss.python.org/t/need-auditwheel-like-utility-for-other-platforms/2028,https://discuss.python.org/t/packaging-dlls-on-windows/1401