Hivex33 open jobs

Senior Python developer

BackendPosted 5 weeks agovia Himalayas, a remote job board

Work type
RemoteOpen worldwide
Experience
7+ years
Pay
Not listed
Posted
5 weeks ago
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 and FastAPI

About the job

We are looking for a talented and experienced SeniorPython Developer to join our creative team and contribute to the development of cutting-edge solutions that align with our commitment to excellence.

Requirements:

  • 7+ years of commercial experience as a Python Developer with focus on FastAPI
  • Experience with Supabase
  • Experience with parallelization
  • Knowledge of version control systems (e.g., Git).
  • Advanced English level
  • Excellent problem-solving and communication skills.
  • Ability to work both independently and collaboratively in a team environment.

Responsibilities:

  • Collaborate with the development team to design and implement high-quality software solutions using Python
  • Participate in all phases of the software development life cycle, including requirements gathering, design, coding, testing, and deployment
  • Debug, troubleshoot, and optimize application code to ensure performance and reliability
  • Work closely with other teams, such as product management and quality assurance, to deliver high-quality software solutions
  • Stay up-to-date with the latest trends and best practices in Python development

What we offer:

  • Remote job with the freedom to work from anywhere in the world.
  • Flexible work schedule tailored to your life and work needs.
  • Competitive and timely salary.
  • Opportunities for professional growth and development.
  • The chance to gain experience in various fields and participate in exciting projects.
  • Your ideas and initiatives are always welcome and valued

Originally posted on Himalayas

Interested?Senior Python developer at Hivex

Apply on Himalayas (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on Python and FastAPI

Interview questions for this job

For the skills the ad mentions: Python and FastAPI.

164 questions
  • How do I iterate over a sequence in reverse order?Python

    Use the reversed() built-in function:

    for x in reversed(sequence):
        ...  # do something with x ...
    

    This returns a reverse iterator without modifying your original sequence.

    From Python Frequently Asked Questions (PSF License Version 2)

  • How can I enable CORS in FastAPI?FastAPI

    you can find answer from this:fastapi cors

    then this is a very simple code to achieve it:

    1. create a python file and named it main.py.

    2. add code in this file.

    from fastapi import FastAPI
    from fastapi.middleware.cors import CORSMiddleware
    app = FastAPI()
    origins = ["*"]
    app.add_middleware(
        CORSMiddleware,
        allow_origins=origins,
        allow_credentials=True,
        allow_methods=["*"],
        allow_headers=["*"],
    )
    @app.get("/")
    async def main():
        return {"message": "Hello World"}
    

    and run this app:

    uvicorn main:app  --reload --host 0.0.0.0 --port 8000
    

    if you computer ip is 192.12.12.12

    you can check this link and just write a small javascript in html:

    <script>
            fetch("http://192.12.12.12:8000/").then((Response) => {
                return Response.json()
            }).then((data) => {
                console.log(data);
            })
        </script>
    

    From Stack Overflow: asked by user270199, answered by yuanzz (CC BY-SA 4.0)

  • Is it possible to write obfuscated one-liners in Python?Python

    Yes. Usually this is done by nesting lambda within lambda. See the following three examples, slightly adapted from Ulf Bartelt:

    from functools import reduce
    # Primes < 1000
    print(list(filter(None,map(lambda y:y*reduce(lambda x,y:x*y!=0,
    map(lambda x,y=y:y%x,range(2,int(pow(y,0.5)+1))),1),range(2,1000)))))
    # First 10 Fibonacci numbers
    print(list(map(lambda x,f=lambda x,f:(f(x-1,f)+f(x-2,f)) if x>1 else 1:
    f(x,f), range(10))))
    # Mandelbrot set
    print((lambda Ru,Ro,Iu,Io,IM,Sx,Sy:reduce(lambda x,y:x+'\n'+y,map(lambda y,
    Iu=Iu,Io=Io,Ru=Ru,Ro=Ro,Sy=Sy,L=lambda yc,Iu=Iu,Io=Io,Ru=Ru,Ro=Ro,i=IM,
    Sx=Sx,Sy=Sy:reduce(lambda x,y:x+y,map(lambda x,xc=Ru,yc=yc,Ru=Ru,Ro=Ro,
    i=i,Sx=Sx,F=lambda xc,yc,x,y,k,f=lambda xc,yc,x,y,k,f:(k<=0)or (x*x+y*y
    >=4.0) or 1+f(xc,yc,x*x-y*y+xc,2.0*x*y+yc,k-1,f):f(xc,yc,x,y,k,f):chr(
    64+F(Ru+x*(Ro-Ru)/Sx,yc,0,0,i)),range(Sx))):L(Iu+y*(Io-Iu)/Sy),range(Sy
    ))))(-2.1, 0.7, -1.2, 1.2, 30, 80, 24))
    #    \___ ___/  \___ ___/  |   |   |__ lines on screen
    #        V          V      |   |______ columns on screen
    #        |          |      |__________ maximum of "iterations"
    #        |          |_________________ range on y axis
    #        |____________________________ range on x axis
    

    Don’t try this at home, kids!

    From Python Frequently Asked Questions (PSF License Version 2)

  • What are the best practices for structuring a FastAPI project?FastAPI

    Harsha already mentioned my project generator but I think it can be helpful for future readers to explain the ideas behind of it.

    If you are going to serve your frontend something like yarn or npm. You should not worry about the structure between them. With something like axios or the Javascript's fetch you can easily talk with your backend from anywhere.

    When it comes to structuring the backend, if you want to render templates with Jinja, you can have something that is close to MVC Pattern.

    your_project
    ├── __init__.py
    ├── main.py
    ├── core
    │   ├── models
    │   │   ├── database.py
    │   │   └── __init__.py
    │   ├── schemas
    │   │   ├── __init__.py
    │   │   └── schema.py
    │   └── settings.py
    ├── tests
    │   ├── __init__.py
    │   └── v1
    │       ├── __init__.py
    │       └── test_v1.py
    └── v1
        ├── api.py
        ├── endpoints
        │   ├── endpoint.py
        │   └── __init__.py
        └── __init__.py 
    

    By using __init__ everywhere, we can access the variables from the all over the app, just like Django.

    Let's the folders into parts:

    • Core
      • models
        • database.py
      • schemas
        • users.py
        • something.py
      • settings.py
      • views (Add this if you are going to render templates)
        • v1_views.py
        • v2_views.py
    • tests
    • v1
    • v2

    Models

    It is for your database models, by doing this you can import the same database session or object from v1 and v2.

    Schemas

    Schemas are your Pydantic models, we call it schemas because it is actually used for creating OpenAPI schemas since FastAPI is based on OpenAPI specification we use schemas everywhere, from Swagger generation to endpoint's expected request body.

    settings.py

    It is for Pydantic's Settings Management which is extremely useful, you can use the same variables without redeclaring it, to see how it could be useful for you check out our documentation for Settings and Environment Variables

    Views

    This is optional if you are going to render your frontend with Jinja, you can have something close to MVC pattern

    • Core
      • views
        • v1_views.py
        • v2_views.py

    It would look something like this if you want to add views.

    Tests

    It is good to have your tests inside your backend folder.

    APIs

    Create them independently by APIRouter, instead of gathering all your APIs inside one file.

    Notes

    You can use absolute import for all your importing since we are using __init__ everywhere, see Python's packaging docs.

    So assume you are trying to import v1's endpoint.py from v2, you can simply do

    from my_project.v1.endpoints.endpoint import something
    

    From Stack Overflow: asked by Shivam Manswalia, answered by Yagiz Degirmenci (CC BY-SA 4.0)

  • Why did changing list ‘y’ also change list ‘x’?Python

    If you wrote code like:

    >>> x = []
    >>> y = x
    >>> y.append(10)
    >>> y
    [10]
    >>> x
    [10]
    

    you might be wondering why appending an element to y changed x too.

    There are two factors that produce this result:

    1. Variables are simply names that refer to objects. Doing y = x doesn’t create a copy of the list – it creates a new variable y that refers to the same object x refers to. This means that there is only one object (the list), and both x and y refer to it.

    2. Lists are mutable, which means that you can change their content.

    After the call to append(), the content of the mutable object has changed from [] to [10]. Since both the variables refer to the same object, using either name accesses the modified value [10].

    If we instead assign an immutable object to x:

    >>> x = 5  # ints are immutable
    >>> y = x
    >>> x = x + 1  # 5 can't be mutated, we are creating a new object here
    >>> x
    6
    >>> y
    5
    

    we can see that in this case x and y are not equal anymore. This is because integers are immutable, and when we do x = x + 1 we are not mutating the int 5 by incrementing its value; instead, we are creating a new object (the int 6) and assigning it to x (that is, changing which object x refers to). After this assignment we have two objects (the ints 6 and 5) and two variables that refer to them (x now refers to 6 but y still refers to 5).

    Some operations (for example y.append(10) and y.sort()) mutate the object, whereas superficially similar operations (for example y = y + [10] and sorted(y)) create a new object. In general in Python (and in all cases in the standard library) a method that mutates an object will return None to help avoid getting the two types of operations confused. So if you mistakenly write y.sort() thinking it will give you a sorted copy of y, you’ll instead end up with None, which will likely cause your program to generate an easily diagnosed error.

    However, there is one class of operations where the same operation sometimes has different behaviors with different types: the augmented assignment operators. For example, += mutates lists but not tuples or ints (a_list += [1, 2, 3] is equivalent to a_list.extend([1, 2, 3]) and mutates a_list, whereas some_tuple += (1, 2, 3) and some_int += 1 create new objects).

    In other words:

    Read the rest at the sourceFrom Python Frequently Asked Questions (PSF License Version 2)

  • 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)

More jobs like this

Remote Backend developer jobs (36)