semvec/pypi-packages huggingface dataset:
pycommon 0.3.6
Useful functions missing from the standard libraries
Keywords: utility,miscellaneous,library

Linux build: [![Build Status](https://travis-ci.org/dgrant/pycommon.svg?branch=master)](https://travis-ci.org/dgrant/pycommon) [![Coverage Status](https://coveralls.io/repos/dgrant/pycommon/badge.svg?branch=master)](https://coveralls.io/r/dgrant/pycommon?branch=master)

Windows build: [![Build status](https://ci.appveyor.com/api/projects/status/96kwy8819r627u19/branch/master)](https://ci.appveyor.com/project/dgrant/pycommon/branch/master)

A collection of useful utilities

Installing
==========

* Install from PyPI: [pycommon on PyPI](https://pypi.python.org/pypi/pycommon)
* Install using pip: `pip install pycommon`

Standards (draft)
=================

* All code tested with 100% coverage.
* No breaking backwards compatibility after 1.0.
* Cross-platform.
* Supports Python 2.7, 3.4, 3.5, 3.6, 3.7 on Linux
* Supports Pyton 2.7, 3.4, 3.5, 3.6, 3.7 on Windows
nh-awssamlpy2 1.0.8.0
SAML federated API access for AWS

As part of AWS Governance to enhance the security with the accounts and IAM users, Federated API access is recommended for AWS resources instead of hard-coded IAM AcessID and SecretKeys in the config file.

# Steps:

- If this is the first time install of this python package, use below command:

		For Python2.x version, pip install awssamlpy2
		For Python3.x version, pip install awssamlpy3

- To upgrade this python package to latest version, use below command:

		For Python2.x version, pip install awssamlpy2 --upgrade
		For Python3.x version, pip install awssamlpy3 --upgrade

- Create a 'awssaml.properties' (~/awssaml.properties) file under your user home directory like below -

		[UserProp]
		aws-region=us-east-1
		aws-outputformat=json
		idpurl=https://<Your Company AWS SAML Domain>/adfs/ls/IdpInitiatedSignOn.aspx?loginToRp=urn:amazon:webservices

	Please refer to Mesh DOC-111675 for the idpurl

- Create a 'configure' file under ~/.aws directory without providing the values for access and secret keys. Dont worry if haven't yet; the package will automatically create one if this file is not present. You may just choose the output and region fields as per your need.

		[default]
		output = json
		region = us-east-1
		aws_access_key_id =
		aws_secret_access_key =

- We have taken care to package the required modules. But if there are any additional packages required, install the missing modules based on the error encountered like below:

        On Linux, pip install <module>
            Eg: pip install requests

        On Windows, easy_install <module>
            Eg: easy_install requests

- Whenever you need SAML access to your AWS services, just the command:

		aws-saml 

- This does the following:

        - Verifies your ~/.aws/configure file to set the approriate region; OR creates one if its not present

		- Prompts the user for AD username/password and does SAML auth with our ADFS
                    NOTE: Username has to be in the format <domain>\<networkID>

		- Based on SAML response, prompts the user to choose the roles available on AWS for that user

		- Then, stores the temporarily created credentials (using Amazon STS service) for the user in the ~/.aws/credentials file along with STS token

		- Use API calls to work on AWS resources

		- Sample API call used in the script is for listing the S3 buckets, which is in Boto2.x format
scratchpad-deadmund 1.1.0
Notepad with basic math functions

# scratchpad
Basic notepad app with some built in calculator functions written in python using Tkinter.

Scratchpad can be used for notetaking and will automatically perform in-line math while you type.  For those interested, it basically finds any mathematical looking questions and throws them into python.

![Alt](./Screenshot.png "Screenshot1")  

### Supported Operations

* &nbsp;&nbsp; \+ &nbsp;&nbsp;&nbsp;&nbsp;(_addition_)
* &nbsp;&nbsp; \- &nbsp;&nbsp;&nbsp;&nbsp; (_subtract_)
* &nbsp;&nbsp; / &nbsp;&nbsp;&nbsp;&nbsp; (_divide_)
* &nbsp;&nbsp; \* &nbsp;&nbsp;&nbsp;&nbsp; (_multiply_)
* &nbsp;&nbsp; ** &nbsp;&nbsp;&nbsp;&nbsp; (_exponent_)
* &nbsp;&nbsp; () &nbsp;&nbsp;&nbsp;&nbsp; (_order of operations enforced by parenthesis_)
* &nbsp;&nbsp; == &nbsp;&nbsp;&nbsp;&nbsp; (_comparison, as in 6 == 2 * 3 => true_)


### How to install / run
#### Using this github repo / source code
Just download (clone or otherwise) everything here and run

`python3 scratchpad.py`

\-_or_\-

`./scratchpad.py`


#### Using PyPi package repo

`pip3 install scratchpad-deadmund`

`python3 -m scratchpad`



#### Generate a .deb and install that
(_still waiting to get package listed in Ubuntu_)

`cd scratchpad/debian-packaging/`

`debuild --no-tgz-check`

`cd ../`

`sudo dpkg -i scratchpad_1.1.0_all.deb`

_then to run_

`scratchpad`


#### Generate a pypi package and install that

`cd scratchpad/pypi-packaging`

`python3 setup.py sdist bdist_wheel`

`pip3 install dist/*`

_then to run_

`python3 -m scratchpad`

[//]: # The tool chain you need is pip3 install twine, setuptools, wheel, mkpkg
[//]: # To check for mistakes in package use:  python3 -m twine check dist/*
[//]: # To install it locally  (without pypi):  pip3 install dist/*
[//]: # To upload it:  python3 -m twine upload dist/*
[//]: # This might prove useful:  python3 -m mkpkg --cli scratchpad.py scratchpad