RxCloud5 open jobs

Python Developer

BackendPosted over 2 months agovia Himalayas, a remote job board

Work type
RemoteIn India
Experience
5+ years
Pay
Not listedUsually ₹15 LPABackend, median at 5–9 years, in India (Payscale)
Posted
Over 2 months agoOpen 2 months
Before you apply: make your resume fit this job

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on Python, REST APIs, Flask and 2 more

About the job

Job Title: Python Developer

Location : India(Remote)

Description :

  • Good development experience on python
  • experience on REST API, Flask API,Fast API is must, Django or pyramid framework is good to have
  • experience on ORM,SQL, Alchemy,Alembic, is a must
  • Experience on writing on effective and scalable code
  • Experience on unit testing using Pytest or equivalent frame work
  • A deep understanding and multi - process architecture and threading limitations of pythons
  • Familiarity with server side templating language including jinja 2 and mako.

Experience : 5+ yrs

Kindly share you resume at :

Originally posted on Himalayas

Interested?Python Developer at RxCloud

Apply on Himalayas (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on Python, REST APIs, Flask and 2 more

Interview questions for this job

For the skills the ad mentions: Python, REST APIs, Flask, Django and SQL.

428 questions
  • 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:

    1. standard library modules – such as sys, os, argparse, re

    2. third-party library modules (anything installed in Python’s site-packages directory) – such as dateutil, requests, tzdata

    3. 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)

  • 400 vs 422 response to POST of dataREST APIs

    400 Bad Request would now seem to be the best HTTP/1.1 status code for your use case.

    At the time of your question (and my original answer), RFC 7231 was not a thing; at which point I objected to 400 Bad Request because RFC 2616 said (with emphasis mine):

    The request could not be understood by the server due to malformed syntax.

    and the request you describe is syntactically valid JSON encased in syntactically valid HTTP, and thus the server has no issues with the syntax of the request.

    However as pointed out by Lee Saferite in the comments, RFC 7231, which obsoletes RFC 2616, does not include that restriction:

    The 400 (Bad Request) status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

    However, prior to that re-wording (or if you want to quibble about RFC 7231 only being a proposed standard right now), 422 Unprocessable Entity does not seem an incorrect HTTP status code for your use case, because as the introduction to RFC 4918 says:

    While the status codes provided by HTTP/1.1 are sufficient to describe most error conditions encountered by WebDAV methods, there are some errors that do not fall neatly into the existing categories. This specification defines extra status codes developed for WebDAV methods (Section 11)

    And the description of 422 says:

    The 422 (Unprocessable Entity) status code means the server understands the content type of the request entity (hence a 415(Unsupported Media Type) status code is inappropriate), and the syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions.

    (Note the reference to syntax; I suspect 7231 partly obsoletes 4918 too)

    This sounds exactly like your situation, but just in case there was any doubt, it goes on to say:

    For example, this error condition may occur if an XML request body contains well-formed (i.e., syntactically correct), but semantically erroneous, XML instructions.

    (Replace "XML" with "JSON" and I think we can agree that's your situation)

    Now, some will object that RFC 4918 is about "HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)" and that you (presumably) are doing nothing involving WebDAV so shouldn't use things from it.

    Given the choice between using an error code in the original standard that explicitly doesn't cover the situation, and one from an extension that describes the situation exactly, I would choose the latter.

    Furthermore, RFC 4918 Section 21.4 refers to the IANA Hypertext Transfer Protocol (HTTP) Status Code Registry, where 422 can be found.

    I propose that it is totally reasonable for an HTTP client or server to use any status code from that registry, so long as they do so correctly.

    Read the rest at the sourceFrom Stack Overflow: asked by David S, answered by Kristian Glass (CC BY-SA 4.0)

  • Can Flask have optional URL parameters?Flask

    Another way is to write

    @user.route('/<user_id>', defaults={'username': None})
    @user.route('/<user_id>/<username>')
    def show(user_id, username):
        pass
    

    But I guess that you want to write a single route and mark username as optional? If that's the case, I don't think it's possible.

    From Stack Overflow: asked by Noor, answered by Audrius Kažukauskas (CC BY-SA 3.0)

  • OneToOneField() vs ForeignKey() in DjangoDjango

    Differences between OneToOneField(SomeModel) and ForeignKey(SomeModel, unique=True) as stated in The Definitive Guide to Django:

    OneToOneField

    A one-to-one relationship. Conceptually, this is similar to a ForeignKey with unique=True, but the "reverse" side of the relation will directly return a single object.

    In contrast to the OneToOneField "reverse" relation, a ForeignKey "reverse" relation returns a QuerySet.

    Example

    For example, if we have the following two models (full model code below):

    1. Car model uses OneToOneField(Engine)
    2. Car2 model uses ForeignKey(Engine2, unique=True)

    From within python manage.py shell execute the following:

    OneToOneField Example

    >>> from testapp.models import Car, Engine
    >>> c = Car.objects.get(name='Audi')
    >>> e = Engine.objects.get(name='Diesel')
    >>> e.car
    <Car: Audi>
    

    ForeignKey with unique=True Example

    >>> from testapp.models import Car2, Engine2
    >>> c2 = Car2.objects.get(name='Mazda')
    >>> e2 = Engine2.objects.get(name='Wankel')
    >>> e2.car2_set.all()
    [<Car2: Mazda>]
    

    Model Code

    from django.db import models
    class Engine(models.Model):
        name = models.CharField(max_length=25)
        def __unicode__(self):
            return self.name
    class Car(models.Model):
        name = models.CharField(max_length=25)
        engine = models.OneToOneField(Engine)
        def __unicode__(self):
            return self.name
    class Engine2(models.Model):
        name = models.CharField(max_length=25)
        def __unicode__(self):
            return self.name
    class Car2(models.Model):
        name = models.CharField(max_length=25)
        engine = models.ForeignKey(Engine2, unique=True, on_delete=models.CASCADE)
        def __unicode__(self):
            return self.name
    

    From Stack Overflow: asked by redice, answered by Matthew Rankin (CC BY-SA 4.0)

  • Keyword to retrieve maximum value?SQL

    MAX() aggregate function.

    SELECT MAX(salary) FROM employees;
    

    From Cracking the SQL Interview (MIT)

  • What do you do in your spare time?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.

    Example

    If 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

More like this: Backend developer jobs in India (937) and Remote Backend developer jobs in India (324)