Saravanan666/pypi-org huggingface dataset:
Package: armstrong.apps.content
Provides a concrete implementation of theContentBasemodel inside thearmstrong.core.arm_contentpackage.WarningThis is development level software.  Please do not unless you are
familiar with what that means and are comfortable using that type
of software.UsageTODOInstallationname="armstrong.apps.content"
pip install -e git://github.com/armstrong/$name#egg=$nameContributingCreate something awesome – make the code better, add some functionality,
whatever (this is the hardest part).Fork itCreate a topic branch to house your changesGet all of your commits in the new topic branchSubmit apull requestState of ProjectArmstrong is an open-source news platform that is freely available to any
organization.  It is the result of a collaboration between theTexas TribuneandBay Citizen, and a grant from theJohn S. and James L. Knight
Foundation.  The first release is scheduled for June, 2011.To follow development, be sure to join theGoogle Group.armstrong.apps.contentis part of theArmstrongproject.  You’re
probably looking for that.LicenseCopyright 2011 Bay Citizen and Texas TribuneLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: armstrong.apps.donations
This package provides the base pieces required to accept donations on an
Armstrong site.armstrong.apps.donationsprovides everything you need to accept donations
except templates.  It defaults to Authorize.net for its payment processing, but
all payment processing can be configured.Usagearmstrong.apps.donationsships with a default set of URL routes that may
work for you without any tweaking.  Simply add the URL configuration you would
like and includearmstrong.apps.donations.urls.  For example, you could
configure it to respond to/donate/like this inside your mainurlsmodule.# This assumes you already have a urlpatterns variable
urlpatterns += patterns('',
    url(r'^/donate/', include('armstrong.apps.donations.urls')),
)This adds aDonationFormViewview for you at/donate/and a thanks page
viaThanksViewat/donate/thanks/.  You need to add templates for each.
The default templates are:armstrong/donations/donation.htmlarmstrong/donations/thanks.htmlYou need to use thedonation_formcontext value to display theDonationForminside theDonationFormView.Installation & ConfigurationYou can install the latest release ofarmstrong.apps.donationsusingpip:pip install armstrong.apps.donationsMake sure to addarmstrong.apps.donationsandarmstrong.apps.contentto
yourINSTALLED_APPS.  You can add this however you like.  This works as a
copy-and-paste solution:INSTALLED_APPS += ["armstrong.apps.donations", ]Once installed, you have to run eithersyncdb, ormigrateif you are
usingSouth.You can configure the payment backend using theARMSTRONG_DONATIONS_BACKENDsetting.  It defaults to:ARMSTRONG_DONATIONS_BACKEND = "armstrong.apps.donations.backends.AuthorizeNetBackend"This utilizesarmstrong.utils.backendsfor its backend processing.State of ProjectArmstrong is an open-source news platform that is freely available to any
organization.  It is the result of a collaboration between theTexas TribuneandBay Citizen, and a grant from theJohn S. and James L. Knight
Foundation.To follow development, be sure to join theGoogle Group.armstrong.apps.donationsis part of theArmstrongproject.  You’re
probably looking for that.
Package: armstrong.apps.images
Provides functionality around handling images inside Django.UsageThis package is currently in the process of being revisited.  This section will
be updated once that has been done.Installation & ConfigurationYou can install the latest release ofarmstrong.apps.imagesusingpip:pip install armstrong.apps.imagesMake sure to addarmstrong.apps.imagesandarmstrong.apps.contentto
yourINSTALLED_APPS.  You can add this however you like.  This works as a
copy-and-paste solution:INSTALLED_APPS += ["armstrong.apps.images", "armstrong.apps.content", ]armstrong.apps.contentis required becauseImageextends from theContentmodel insideapps.content.ContributingCreate something awesome – make the code better, add some functionality,
whatever (this is the hardest part).Fork itCreate a topic branch to house your changesGet all of your commits in the new topic branchSubmit apull requestState of ProjectArmstrong is an open-source news platform that is freely available to any
organization.  It is the result of a collaboration between theTexas TribuneandBay Citizen, and a grant from theJohn S. and James L. Knight
Foundation.To follow development, be sure to join theGoogle Group.armstrong.apps.imagesis part of theArmstrongproject.  You’re
probably looking for that.LicenseCopyright 2011-2012 Bay Citizen and Texas TribuneLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.CreditsThe image file, smiley.jpg, was created by Dave McLain as a work for hire, its
copyright is held by the Texas Tribune and is licensed under the Creative
Commons Attribution license.
Package: armstrong.apps.series
Provides way to create series of contentUsageTODOInstallation & ConfigurationYou can install the latest release ofarmstrong.apps.seriesusingpip:pip install armstrong.apps.seriesMake sure to addarmstrong.apps.series``toyour ``INSTALLED_APPS.  You can
add this however you like.  This works as a copy-and-paste solution:INSTALLED_APPS += ["armstrong.apps.series", ]Once installed, you have to run eithersyncdb, ormigrateif you are
usingSouth.ContributingCreate something awesome – make the code better, add some functionality,
whatever (this is the hardest part).Fork itCreate a topic branch to house your changesGet all of your commits in the new topic branchSubmit apull requestState of ProjectArmstrong is an open-source news platform that is freely available to any
organization.  It is the result of a collaboration between theTexas TribuneandBay Citizen, and a grant from theJohn S. and James L. Knight
Foundation.To follow development, be sure to join theGoogle Group.armstrong.apps.articlesis part of theArmstrongproject.  You’re
probably looking for that.LicenseCopyright 2011-2012 Bay Citizen and Texas TribuneLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: armstrong.cli
Provides basic commands needed for Armstrong scaffoldingUsagearmstrong.cli is used as the entry point for all armstrong specific commands as
well as being a replacement for the django manage.py script. The base package
provides the init command which will create a new armstrong project at a
given path.To create additional armstrong commands, create a callable and specify it as an
‘armstrong.command’ entry_point via setuptools. If the command can be run
outside of the context of an armstrong project, the callable should have the
attributerequires_armstrongset to false. Additionally, if the command
takes argument, a subparser fromargparsewill be passed to the optionalbuild_parsermethod of your command.InstallationWe recommend installing this through pypi.  You can install it like this:pip install armstrong.cliContributingCreate something awesome – make the code better, add some functionality,
whatever (this is the hardest part).Fork itCreate a topic branch to house your changesGet all of your commits in the new topic branchSubmit apull requestState of ProjectArmstrong is an open-source news platform that is freely available to any
organization.  It is the result of a collaboration between theTexas TribuneandBay Citizen, and a grant from theJohn S. and James L. Knight
Foundation.  The first release is scheduled for June, 2011.To follow development, be sure to join theGoogle Group.armstrong.cliis part of theArmstrongproject.  You’re
probably looking for that.LicenseCopyright 2011 Bay Citizen and Texas TribuneLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: armstrong.core.arm_content
Provides the foundation for all content inside Armstrong.UsageYou can usearmstrong.core.arm_contentto build out the custom models of
your site while following the DRY (Don’t Repeat Yourself) principle.  It is the
foundation that the rest of the Armstrong content types are built off of.For more information, please see thefull documentation.Installation & ConfigurationYou can install the latest release ofarmstrong.core.arm_contentusingpip:pip install armstrong.core.arm_contentYou don’t need to addarmstrong.core.arm_contentto your installed apps
unless you want to use the include template tags.  You can add it like this:INSTALLED_APPS += ["armstrong.core.arm_content", ]Note that you do not need to runsyncdbormigrateafter installingarmstrong.core.arm_contentas it does not have any models.State of ProjectArmstrong is an open-source news platform that is freely available to any
organization.  It is the result of a collaboration between theTexas TribuneandBay Citizen, and a grant from theJohn S. and James L. Knight
Foundation.To follow development, be sure to join theGoogle Group.armstrong.core.arm_contentis part of theArmstrongproject.  You’re
probably looking for that.LicenseCopyright 2011-2012 Bay Citizen and Texas TribuneLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: armstrong.hatband
Provides administrative interface and utilities for use inArmstrong.UsageTODOInstallation & ConfigurationYou can install the latest release ofarmstrong.hatbandusingpip:pip install armstrong.hatbandMake sure to addarmstrong.hatbandanddjango.contrib.adminto yourINSTALLED_APPS.  You can add this however you like.  This works as a
copy-and-paste solution:INSTALLED_APPS += ["armstrong.hatband", "django.contrib.admin", ]Once installed, you must runsyncdbin order to install Django’s admin
models.  This is only required if you did not have Django’s admin already
installed and configured.Finally, you must alter your URL configuration.  At the top of yoururlsmodule (urls.defaultsin an Armstrong project), make sure to change this
line:from django.contrib import adminTo:from armstrong import hatband as adminThe rest of the URL configuration stays identical to what is expected for the
traditional Django admin.ContributingCreate something awesome – make the code better, add some functionality,
whatever (this is the hardest part).Fork itCreate a topic branch to house your changesGet all of your commits in the new topic branchSubmit apull requestState of ProjectArmstrong is an open-source news platform that is freely available to any
organization.  It is the result of a collaboration between theTexas TribuneandBay Citizen, and a grant from theJohn S. and James L. Knight
Foundation.To follow development, be sure to join theGoogle Group.armstrong.hatbandis part of theArmstrongproject.  You’re probably
looking for that.LicenseCopyright 2011-2012 Bay Citizen and Texas TribuneLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: armstrong.templates.paywall
Provides a basic example of how to create a paywall inside ArmstrongThis template shows a working version of paywall code. The paywall is declared
inurls/defaults.py.UsageYou can use this to initial a demo Armstrong project with a paywall.  The paywall
is defined inurls/defaults.py.   By default, theSubscriptionPaywallreturns a 304 when access is denied, but it has been overriden to render thepermission_denied.htmltemplate instead. The only view that needs to be
protected is theArticleDetailView.The third article on the front page, ‘Help Wanted’ is protected. When not
logged in, thepermission_denied.htmlwill be rendered, but when logged in as a
staff member or as the user with the usernameuserand password ofuseryou
will see the normalarticle.htmltemplate.You can install this demo project template via thearmstrongbinary that
ships witharmstrong.clilike this:$ armstrong init --template=paywallYou must install this package in order to be able to usearmstrong init.
You can also use it via Django’sdjango-admin.pyas of Django 1.4.  Create
a clone of thearmstrong.templates.paywallrepository and run this command
(adjusting the paths for your machine):$ django-admin.py startproject --template=/path/to/armstrong.templates.paywall/project_templateInstallation & ConfigurationYou can install the latest release ofarmstrong.templates.paywallusingpip:pip install armstrong.templates.paywallNo configuration is required for this component.ContributingCreate something awesome – make the code better, add some functionality,
whatever (this is the hardest part).Fork itCreate a topic branch to house your changesGet all of your commits in the new topic branchSubmit apull requestState of ProjectArmstrong is an open-source news platform that is freely available to any
organization.  It is the result of a collaboration between theTexas TribuneandBay Citizen, and a grant from theJohn S. and James L. Knight
Foundation.To follow development, be sure to join theGoogle Group.armstrong.templates.paywallis part of theArmstrongproject.  You’re
probably looking for that.LicenseCopyright 2011-2012 Bay Citizen and Texas TribuneLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: armstrong.templates.standard
Provides a basic project template for an Armstrong projectUsageYou can use this to initial a new Armstrong project.  This can be done via thearmstrongbinary that ships witharmstrong.clilike this:$ armstrong init --template=standardYou must install this package in order to be able to usearmstrong init.
You can also use it via Django’sdjango-admin.pyas of Django 1.4.  Create
a clone of thearmstrong.templates.standardrepository and run this command
(adjusting the paths for your machine):$ django-admin.py startproject --template=/path/to/armstrong.templates.standard/project_templateInstallation & ConfigurationYou can install the latest release ofarmstrong.templates.standardusingpip:pip install armstrong.templates.standardNo configuration is required for this component.ContributingCreate something awesome – make the code better, add some functionality,
whatever (this is the hardest part).Fork itCreate a topic branch to house your changesGet all of your commits in the new topic branchSubmit apull requestState of ProjectArmstrong is an open-source news platform that is freely available to any
organization.  It is the result of a collaboration between theTexas TribuneandBay Citizen, and a grant from theJohn S. and James L. Knight
Foundation.To follow development, be sure to join theGoogle Group.armstrong.templates.standardis part of theArmstrongproject.  You’re
probably looking for that.LicenseCopyright 2011-2012 Bay Citizen and Texas TribuneLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: armstrong.templates.tutorial
Provides a basic Armstrong project for use with theArmstrong tutorial.UsagePlease see theArmstrong tutorialfor how to use this template.Installation & ConfigurationYou can install the latest release ofarmstrong.templates.tutorialusingpip:pip install armstrong.templates.tutorialNo configuration is required for this component.ContributingCreate something awesome – make the code better, add some functionality,
whatever (this is the hardest part).Fork itCreate a topic branch to house your changesGet all of your commits in the new topic branchSubmit apull requestState of ProjectArmstrong is an open-source news platform that is freely available to any
organization.  It is the result of a collaboration between theTexas TribuneandBay Citizen, and a grant from theJohn S. and James L. Knight
Foundation.To follow development, be sure to join theGoogle Group.armstrong.templates.standardis part of theArmstrongproject.  You’re
probably looking for that.LicenseCopyright 2011-2012 Bay Citizen and Texas TribuneLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: armstrong.utils.celery
armstrong.utils.celery======================Provides some utility functions for dealing with `Celery`_.. warning:: This is development level software.  Please do not unless you arefamiliar with what that means and are comfortable using that typeof software.Usage-----*TODO*Installation------------*TODO*Contributing------------* Create something awesome -- make the code better, add some functionality,whatever (this is the hardest part).* `Fork it`_* Create a topic branch to house your changes* Get all of your commits in the new topic branch* Submit a `pull request`_.. _Fork it: http://help.github.com/forking/.. _pull request: http://help.github.com/pull-requests/State of Project----------------Armstrong is an open-source news platform that is freely available to anyorganization.  It is the result of a collaboration between the `Texas Tribune`_and `Bay Citizen`_, and a grant from the `John S. and James L. KnightFoundation`_.To follow development, be sure to join the `Google Group`_.``armstrong.utils.celery`` is part of the `Armstrong`_ project.  You'reprobably looking for that... _Texas Tribune: http://www.texastribune.org/.. _Bay Citizen: http://www.baycitizen.org/.. _John S. and James L. Knight Foundation: http://www.knightfoundation.org/.. _Google Group: http://groups.google.com/group/armstrongcms.. _Armstrong: http://www.armstrongcms.org/License-------Copyright 2011 Bay Citizen and Texas TribuneLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.
Package: armulator
DescriptionA pure python ARM emulatorInstallationInstall the last released version usingpip:python3-mpipinstall--user-UarmulatorOr install the latest version from sources:gitclonegit@github.com:matan1008/armulator.gitcdpyiosbackup
python3-mpipinstall--user-U-e.UsageTo create a processor object, you need to import it first:fromarmulator.armv6.arm_v6importArmV6Then you can just create it:arm=ArmV6()Getting familiar with the Memory controller concept is crucial for using the processor.In short, there is one "hub" to which you can connect several controllers.A "Memory Controller" can be a stick of RAM, Memory mapped LCD screen or whatever you wish.For example, let's create a RAM controller:fromarmulator.armv6.memory_typesimportRAMfromarmulator.armv6.memory_controller_hubimportMemoryControllermem=RAM(0x100)mc=MemoryController(mem,0xF0000000,0xF0000100)arm.mem.memories.append(mc)Now, trying to access a memory between 0xF0000000 and 0xF0000100, will access thememobject.You can also change the memory manually:mem.write(0,2,"\xfe\xe7")Another useful feature is playing with the memory protection or management unit,
for example cancelling memory protection will look like:arm.registers.sctlr.m=0arm.take_reset()Please note that after changing internal features it is recommended to reset the processor.When running the armulator, you will probably want to start from a defined address, so:arm.registers.branch_to(0x100)The last thing we need to do is to really run the processor, which can be done with:arm.emulate_cycle()Running the testsRunning the tests can be done easily with pytest:python3-mpytesttests-vvAcknowledgmentsAt first, I did it to learn the ARM architecture better. I guess I was carried away.Feel free to report bugs.Feel free to ask for more features.
Package: arn
arnA Python library for parsingAWS ARNs.InstallationTo install, just runpipinstallarnor add the library to yoursetup.py/requirements.txt.UsageGiven an ARN for a particular AWS resource, parse it with the appropriate class:fromarn.elbv2importTargetGroupArntarget_group_arn_str="arn:aws:elasticloadbalancing:us-east-1:123456789012:targetgroup/foo-bar/abc123"target_group_arn=TargetGroupArn(target_group_arn_str)# use the ARN instance's __str__ to format the ARN back into a stringassertstr(target_group_arn)==target_group_arn_str# common attributesasserttarget_group_arn.partition=="aws"asserttarget_group_arn.service=="elasticloadbalancing"asserttarget_group_arn.region=="us-east-1"asserttarget_group_arn.account=="123456789012"# attributes specific to the type of AWS resourceasserttarget_group_arn.name=="foo-bar"asserttarget_group_arn.id=="abc123"