Publishing on pypi

Problem: How to publish my utility script as a reusable package. Create your accounts On PyPI Live and also on PyPI Test. You must create an account in order to be able to upload your code Create a .pypirc configuration file touch  ~/.pypirc [distutils] index-servers = pypi testpypi [pypi] repository:https://upload.pypi.org/legacy/ username:username password:password [testpypi] repository:https://test.pypi.org/legacy/ username:username password:password chmod 600 ~/.pypirc Prepare … Continue reading Publishing on pypi

How to Automation Functional Testing using Selenium Webdriver + Python Part1.

Problem: I want to automate functional testing on this site. A googel type search web with a button see more as pagination. Requirements: The exact environment used in this case is below, But this method is suitable for any platform: IDE: PyCharm CommunityEdition OS:  Linux UbuntuMate 16.04   Browser: 59.0 (Build oficial) (64 bits) Solution: sudo pip … Continue reading How to Automation Functional Testing using Selenium Webdriver + Python Part1.

How to expose instance metadata as environment variables at boot in AWS Linux AMI.

Problem: I want to execute echo ${PUBLIC_IP_ADDRESS} and echo ${PUBLIC_DNS_NAME} get the public ip address and public DNS of my instances. Requirements: Create an AMI role for the instance that allows to execute commands in the awscli in this case was used AdministratorAcces. Solution: You can find the script at  https://github.com/carlosival/aws_metadata_expose sudo nano /opt/init/ec2/user-data.sh Paste the … Continue reading How to expose instance metadata as environment variables at boot in AWS Linux AMI.