Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [python]

Python is a dynamic and strongly typed programming language designed to emphasize usability.

0
votes
1answer
19 views

Are AWS Boto3 calls asynchronous?

In the API documentation for Apache Cloud Stack for example, they put an (A) to designate asynchronous API calls. In the Boto3 - Python client API for AWS - documentation as I can't see anything like ...
0
votes
1answer
24 views

How does Django deployments happen on Servers?

I started learning Django six months ago and I really really loved it. I learnt how to deploy the django projects to EC2 instances. Basically 1st time when the django project is deployed to EC2, ...
1
vote
0answers
15 views

How to confugure proxy for Python Apache Cloud Stack client?

For example in the requests library you can set proxy explicitely. With exoscale/cs (a Python client for Apache Cloud Stack) it does not work for me. Environment variables are set correctly to ...
0
votes
0answers
27 views

Is there a way to use Python library, pyjulia and Julia library PyCall (which inter-operate with each-other) using two containers rather than one?

I would like to base base off of the official language Dockerhub images of Julia and Python. The libraries of interest are Python library pyjulia and Julia library PyCall. I know I could install both ...
-1
votes
1answer
22 views

Where can I find a Dockerfile + required files to create a Flask/MySQL forum/webapp with users?

What I mean, is that I can simply run a command or download a .zip file that results in having a Dockerfile with the whole development environment baked in and includes not just Flask and MySQL set up,...
1
vote
1answer
1k views

Passing variables between scripts in a Jenkins pipeline

I have a declarative Jenkins pipeline that looks like the following: pipeline{ agent { ... } stages { stage("Provision EC2 Instance and Set ENV Variable"){ ...
1
vote
0answers
24 views

Python API requests with OAuth_requests lib behind a corporate proxy

In a Python app we run tests and publish the results into Zephyr in JIRA using the Zephyr/ JIRA API. It works fine not on a corporate network, but now they have switched to use their corporate network,...
1
vote
1answer
104 views

Jenkins Node Image at Kubernetes Plugin

I'm working on huge pipeline with different development environment (python, node, java). For manage this CI pipeline our teams using Jenkins at Kubernetes environment. I want to give PipeLine node ...
3
votes
2answers
3k views

Passing a jenkins credential (global) to a python script

I have a global jenkins credential and a config script that includes the line API_TOKEN = "Token XXX" For security reasons we can't keep the token in the script itself as its in version control. Is ...
-1
votes
1answer
25 views

Python Dictionary [closed]

I am getting the output from my previous executions something like this: [{u'Value': '2018-06-21', u'Key': 'Deletion_Date'}] I want to get only 2018-06-21 saved in a variable. I tried this ...
0
votes
0answers
26 views

Need suggestions to deploy desktop app in cloud

I was wondering whether its possible, if so how, to deploy windows desktop apps made with PyQT GUI in the cloud? Its the legacy desktop app. End goal: People can go to the end point and view the app. ...
8
votes
3answers
158 views

What's a good devops approach for a single developer writing python web applications?

I'm guessing this question will seem incredibly trivial for some readers, but as someone who is a developer but with little experience of deploying apps in anything other than a manual, hit and hope ...
1
vote
1answer
36 views

Way to Connect to all ec2-instances one by one

Is there any way through which I can connect to all ec2-instances one by one through Python script to extract some server information from there. Please note that all ec2-instances lies behind a ...
1
vote
0answers
49 views

Dependency vulnerability scanner for Conda?

Python's pip dependency manager is supported by a number of vulnerability scanners (e.g., Snyk, Gitlab's gemnasium, PyUp), but I have not found such a service for scanning dependencies defined in ...
2
votes
1answer
26 views

Cross Region Copy of Aurora Snapshots

current_date = str(dt.now().strftime('%Y-%m-%d')) target_cluster_snapshot_arn= current_date+'_Development_Aurora' response = TARGET_CLIENT.copy_db_cluster_snapshot( ...
2
votes
1answer
134 views

does boto3 have a way to get resource limits from a region?

Right now I am looking for ec2 instances type limits for a given region. I would like to put in place an audit script that tracks our usage vs our limits for a given set of things. Also open to ...
4
votes
2answers
54 views

Best way to isolate programming projects?

Not sure if this is the best place for the question but I have multiple development projects with different dependencies.. I want to know what the best practice is to isolate each project? I have ...
2
votes
0answers
21 views

How to make fast JSON responses (or equivalent) between server app and front-end apps all running on OpenShift?

I have a system with 5 source data stores (mostly PostgreSQL databases) from which, I want to connect them all to containers running on OpenShift: A library of react applications who's components make ...
2
votes
1answer
79 views

Git Files Encryption for Business

I am using git and have the following problem: In the company where I work you now want to protect the source code from theft. So if for some reason a developer lets the source code of a project go ...
0
votes
1answer
330 views

Why flask is returning a default login page instead mine, custom one [closed]

I have an issue with my app, since I was adding the feature "users roles" I am getting a strange page content on login page looks like default login page instead of my custom login page and I cannot ...
4
votes
2answers
124 views

Automating creation of new VM and pushing code to server

Automating creating of new VM and pushing code to server Hi all, I am writing a integration test for a client-server application. To simulate the production server setup, and to update the code, I ...
-2
votes
1answer
784 views

Unable to run AWS CLI commands from Rundeck-No module named botocore.session

From terminal all works fine, botocore is installed Traceback (most recent call last): File "/bin/aws", line 19, in <module> import awscli.clidriver File "/usr/lib/python2.7/...
7
votes
1answer
2k views

Dockerized Flask: Connection reset by peer

Trying to connect to a dockerized Flask app fails with error 104, 'Connection reset by peer' using this minimal example: app.py: from flask import Flask app = Flask(__name__) @app.route("/") def ...
5
votes
1answer
334 views

Create multiple EC2 instances using python script (in loop iteration)

I Have JSON file in which email address and count of instances are specified.I'm using python script to iterate through that file and get username/count number (count number will be used as number of ...
0
votes
2answers
91 views

Problem with Anaconda installation

This is what comes up any time I start up Anaconda Prompt - \Xtralien was unexpected at this time. C:\Users\User Name> @SET "PATH=C:\Program Files (x86)\QuantumWise\VNL-ATK-2016.3\bin;...
1
vote
1answer
918 views

Using Anaconda instead of pip+virtualenv

We are currently using pip+virtualenv and install all our Python dependencies during the application build step on the CI. This requires compiling some of the packages, which contain C modules, which ...
14
votes
1answer
2k views

A systematic way to test RESTful APIs with curl?

I have noticed during integration testing that I actually work on recurring use cases with restful APIs (or in general HTTP interfaces) I check here and there with bash+cURL. It starts looking quite ...
-1
votes
1answer
104 views

How to avoid and fix the warning from Graphite-manage?

We installed Graphite on our Linux server, and when we started running it, we saw the following warning from the graphite-manage script: graphite-manage syncdb --noinput /usr/lib/python2.7/site-...
-2
votes
3answers
153 views

What approach should I follow for adopting continuous integration?

I have a WAMP server which hosts a Django application by using a Windows server. Currently I am deploying everything manually. Now I want apply Continuous Integration concepts to an existing ...
3
votes
2answers
799 views

How to connect to external etcd server inside of docker container (python application)?

I have a Cement application that runs inside of a docker container. In this image I have to connect to etcd. Inside of my docker image I have config that for etcd is set to localhost that I know is ...
4
votes
2answers
396 views

Re-using Python virtual environments on a build server

Currently, every time we run a build through Jenkins+Ansible, we are re-creating a virtual environment and re-installing all the dependencies listed inside the requirements.txt file. This is very ...
6
votes
1answer
232 views

Re-using Python virtual environment vs Re-building it

Currently, we build our application on a build server where we create a virtual environment using virtualenv command, install all the Python dependencies into it, then "patch" it using the following ...
5
votes
2answers
51 views

Recommendations about release convention or standard for Python scripts?

I have a lot of python scripts which I release to a python virtual environment on a remote machine. The virtual environment is rarely updated. The scripts are pulled from a git repository and a ...
4
votes
2answers
1k views

How to automate Powershell's interactive Get-Credential method?

I am trying to write a python script which automates the powershell's Get-Credential method. Here is something i wrote: import subprocess COMMAND_LINE = 'powershell' powershell = subprocess.Popen(...
1
vote
1answer
316 views

Best learning resources for continuous integration tools like Jenkins [duplicate]

I am a .NET developer , I have decided to learn DevOps continuous integration tools. One of my folk asked me to learn below tools and language: Jenkins Shell Scripting Python I have found below ...
7
votes
2answers
568 views

What are the pros and cons of running application testing during vs. after a docker build?

Our dockerfile creates the application environment (e.g. env variables, install libraries with apt-get etc.). It also pulls and copies the python application code from its git repo. However, we are ...
4
votes
1answer
720 views

Unable to get jupyter/scipy-notebook running on docker

I pulled the docker image and is up to date. When I run it it says that it's going to be accessible at 8888 on my localhost but when I try to access it resource can't be found. Here is the ...
4
votes
0answers
422 views

Problems with integrating Python script in a Bash script Git pre-receive hook [closed]

We have a pre-receive hook script in a bash shell script that enforces commits with messages having the right ticket number in a pre-defined format. We also have a separate python script that can be ...