Python Engineer
BackendPosted 3 days agovia Himalayas, a remote job board
- Work type
- RemoteIn India, the US, Germany and Singapore
- Experience
- 7+ years
- Pay
- Not listedUsually ₹15 LPABackend, median at 5–9 years, in India (Payscale)
- Posted
- 3 days ago
Skills it mentions
Add your skills to see which ones you have.
About the job
Originally posted on Himalayas
Interested?Python Engineer at SME Careers
Apply on Himalayas (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on Python, System design, CI/CD and 1 more
Interview questions for this job
For the skills the ad mentions: Python, System design, CI/CD and Docker.
How can I pass optional or keyword parameters from one function to another?Python
Collect the arguments using the
*and**specifiers in the function’s parameter list; this gives you the positional arguments as a tuple and the keyword arguments as a dictionary. You can then pass these arguments when calling another function by using*and**:def f(x, *args, **kwargs): ... kwargs['width'] = '14.3c' ... g(x, *args, **kwargs)From Python Frequently Asked Questions (PSF License Version 2)
What does PACELC add to CAP?System design
It covers the normal case, when there is no partition. Even then you trade latency against consistency, because keeping replicas in agreement costs a round trip on every write. Read it as: if Partitioned, choose A or C; Else, choose L or C.
From Grokking System Design (open companion) (CC BY 4.0)
What is meant by Continuous Delivery?CI/CD
Continuous Delivery means that every code change which passes the pipeline is automatically prepared for release. The application is packaged, tested, and deployed to environments such as staging in a consistent and repeatable way.
Releases become a business decision rather than a technical challenge. The codebase is always in a deployable state, and deploying to production is a controlled action, often triggered by an approval step rather than additional development work.
From Tech Vault (Apache 2.0)
How is Docker different from a virtual machine?Docker
Docker originally used LinuX Containers (LXC), but later switched to runC (formerly known as libcontainer), which runs in the same operating system as its host. This allows it to share a lot of the host operating system resources. Also, it uses a layered filesystem (AuFS) and manages networking.
AuFS is a layered file system, so you can have a read only part and a write part which are merged together. One could have the common parts of the operating system as read only (and shared amongst all of your containers) and then give each container its own mount for writing.
So, let's say you have a 1 GB container image; if you wanted to use a full VM, you would need to have 1 GB x number of VMs you want. With Docker and AuFS you can share the bulk of the 1 GB between all the containers and if you have 1000 containers you still might only have a little over 1 GB of space for the containers OS (assuming they are all running the same OS image).
A full virtualized system gets its own set of resources allocated to it, and does minimal sharing. You get more isolation, but it is much heavier (requires more resources). With Docker you get less isolation, but the containers are lightweight (require fewer resources). So you could easily run thousands of containers on a host, and it won't even blink. Try doing that with Xen, and unless you have a really big host, I don't think it is possible.
A full virtualized system usually takes minutes to start, whereas Docker/LXC/runC containers take seconds, and often even less than a second.
There are pros and cons for each type of virtualized system. If you want full isolation with guaranteed resources, a full VM is the way to go. If you just want to isolate processes from each other and want to run a ton of them on a reasonably sized host, then Docker/LXC/runC seems to be the way to go.
For more information, check out this set of blog posts which do a good job of explaining how LXC works.
Why is deploying software to a docker image (if that's the right term) easier than simply deploying to a consistent production environment?
Deploying a consistent production environment is easier said than done. Even if you use tools like Chef and Puppet, there are always OS updates and other things that change between hosts and environments.
Docker gives you the ability to snapshot the OS into a shared image, and makes it easy to deploy on other Docker hosts. Locally, dev, qa, prod, etc.: all the same image. Sure you can do this with other tools, but not nearly as easily or fast.
This is great for testing; let's say you have thousands of tests that need to connect to a database, and each test needs a pristine copy of the database and will make changes to the data. The classic approach to this is to reset the database after every test either with custom code or with tools like Flyway - this can be very time-consuming and means that tests must be run serially. However, with Docker you could create an image of your database and run up one instance per test, and then run all the tests in parallel since you know they will all be running against the same snapshot of the database. Since the tests are running in parallel and in Docker containers they could run all on the same box at the same time and should finish much faster. Try doing that with a full VM.
From comments...
Interesting! I suppose I'm still confused by the notion of "snapshot[ting] the OS". How does one do that without, well, making an image of the OS?
Read the rest at the sourceFrom Stack Overflow: asked by zslayton, answered by Ken Cochrane (CC BY-SA 4.0)
What are the “best practices” for using import in a module?Python
In general, don’t use
from modulename import *. Doing so clutters the importer’s namespace, and makes it much harder for linters to detect undefined names.Import modules at the top of a file. Doing so makes it clear what other modules your code requires and avoids questions of whether the module name is in scope. Using one import per line makes it easy to add and delete module imports, but using multiple imports per line uses less screen space.
It’s good practice if you import modules in the following order:
third-party library modules (anything installed in Python’s site-packages directory) – such as dateutil, requests, tzdata
locally developed modules
It is sometimes necessary to move imports to a function or class to avoid problems with circular imports. Gordon McMillan says:
Circular imports are fine where both modules use the “import <module>” form of import. They fail when the 2nd module wants to grab a name out of the first (“from module import name”) and the import is at the top level. That’s because names in the 1st are not yet available, because the first module is busy importing the 2nd.
In this case, if the second module is only used in one function, then the import can easily be moved into that function. By the time the import is called, the first module will have finished initializing, and the second module can do its import.
It may also be necessary to move imports out of the top level of code if some of the modules are platform-specific. In that case, it may not even be possible to import all of the modules at the top of the file. In this case, importing the correct modules in the corresponding platform-specific code is a good option.
Only move imports into a local scope, such as inside a function definition, if it’s necessary to solve a problem such as avoiding a circular import or are trying to reduce the initialization time of a module. This technique is especially helpful if many of the imports are unnecessary depending on how the program executes. You may also want to move imports into a function if the modules are only ever used in that function. Note that loading a module the first time may be expensive because of the one time initialization of the module, but loading a module multiple times is virtually free, costing only a couple of dictionary lookups. Even if the module name has gone out of scope, the module is probably available in
sys.modules.From Python Frequently Asked Questions (PSF License Version 2)
What are your hobbies and interests?Behavioural
Employers will want to get to know you and may ask things like:
- what do you do in your spare time?
- what are your hobbies and interests?
Show what kind of personal qualities, interests and skills you have. For example, you could talk about:
- cooking - to show you're organised and can follow instructions
- travel - to show you're adventurous and flexible
- team sports - to show you're a team player with good communication
- music - to show you're creative
If the job requires certain skills, you should demonstrate these in your examples.
ExampleIf it's a graphic designer role, you could talk about taking a desktop publishing course.
From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Senior Backend EngineerWeekday, Delhi NCR, on-siteToday
- Backend DeveloperAarvexa, Remote in India +1Today
- Senior Software Engineer - PA183ZoomInfo Technologies LLC, Bengaluru, on-site2 days ago
- Senior Analyst - Actuarial ( Python Developer) Gurgaon (3 to 4 years exp in Automation) - 5 days WFOKipi.bi, Delhi NCR, on-site2 days ago
More like this: Backend developer jobs in India (880) and Remote Backend developer jobs in India (305)



