Hivex33 open jobs

Python developer

BackendPosted 5 weeks agovia Himalayas, a remote job board

Work type
RemoteOpen worldwide
Experience
3+ 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, Django, Flask and 3 more

About the job

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

Requirements:

  • 3+ years of commercial experience as a Python Developer
  • Experience with at least one of the relevant frameworks (Django, Flask, etc.)
  • Experience with database systems such as MySQL, PostgreSQL, or MongoDB
  • Knowledge of version control systems (e.g., Git).
  • Strong understanding of software development principles and best practices
  • 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?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, Django, Flask and 3 more

Interview questions for this job

For the skills the ad mentions: Python, Django, Flask, MySQL, PostgreSQL and MongoDB.

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

  • Can "list_display" in a Django ModelAdmin display attributes of ForeignKey fields?Django

    As another option, you can do lookups like:

    #models.py
    class UserAdmin(admin.ModelAdmin):
        list_display = (..., 'get_author')
        
        def get_author(self, obj):
            return obj.book.author
        get_author.short_description = 'Author'
        get_author.admin_order_field = 'book__author'
    

    For Django 3.2 or higher, please refer to this answer

    From Stack Overflow: asked by Huuuze, answered by imjoevasquez (CC BY-SA 4.0)

  • json.dumps vs flask.jsonifyFlask

    The jsonify() function in flask returns a flask.Response() object that already has the appropriate content-type header 'application/json' for use with json responses. Whereas, the json.dumps() method will just return an encoded string, which would require manually adding the MIME type header.

    See more about the jsonify() function here for full reference.

    Edit: Also, I've noticed that jsonify() handles kwargs or dictionaries, while json.dumps() additionally supports lists and others.

    From Stack Overflow: asked by Sergei Basharov, answered by Kenneth Wilke (CC BY-SA 4.0)

  • Find highest level of a hierarchical field: with vs without CTEsMySQL

    You definitely have to script this via MySQL Stored Procedure Language

    Here is a Stored Function called GetParentIDByIDto Retrieve a ParentID given an ID to Search For

    DELIMITER $$
    DROP FUNCTION IF EXISTS `junk`.`GetParentIDByID` $$
    CREATE FUNCTION `junk`.`GetParentIDByID` (GivenID INT) RETURNS INT
    DETERMINISTIC
    BEGIN
        DECLARE rv INT;
        SELECT IFNULL(parent_id,-1) INTO rv FROM
        (SELECT parent_id FROM pctable WHERE id = GivenID) A;
        RETURN rv;
    END $$
    DELIMITER ;
    

    Here is a Stored Function called GetAncestryto Retrieve a List of ParentIDs starting from the First Generation all the up the hierarchy given an ID to start with:

    DELIMITER $$
    DROP FUNCTION IF EXISTS `junk`.`GetAncestry` $$
    CREATE FUNCTION `junk`.`GetAncestry` (GivenID INT) RETURNS VARCHAR(1024)
    DETERMINISTIC
    BEGIN
        DECLARE rv VARCHAR(1024);
        DECLARE cm CHAR(1);
        DECLARE ch INT;
        SET rv = '';
        SET cm = '';
        SET ch = GivenID;
        WHILE ch > 0 DO
            SELECT IFNULL(parent_id,-1) INTO ch FROM
            (SELECT parent_id FROM pctable WHERE id = ch) A;
            IF ch > 0 THEN
                SET rv = CONCAT(rv,cm,ch);
                SET cm = ',';
            END IF;
        END WHILE;
        RETURN rv;
    END $$
    DELIMITER ;
    

    Here is something to generate sample data:

    USE junk
    DROP TABLE IF EXISTS pctable;
    CREATE TABLE pctable
    (
        id INT NOT NULL AUTO_INCREMENT,
        parent_id INT,
        PRIMARY KEY (id)
    ) ENGINE=MyISAM;
    INSERT INTO pctable (parent_id) VALUES (0);
    INSERT INTO pctable (parent_id) SELECT parent_id+1 FROM pctable;
    INSERT INTO pctable (parent_id) SELECT parent_id+2 FROM pctable;
    INSERT INTO pctable (parent_id) SELECT parent_id+3 FROM pctable;
    INSERT INTO pctable (parent_id) SELECT parent_id+4 FROM pctable;
    INSERT INTO pctable (parent_id) SELECT parent_id+5 FROM pctable;
    SELECT * FROM pctable;
    

    Here is what it generates:

    mysql> USE junk
    Database changed
    mysql> DROP TABLE IF EXISTS pctable;
    Query OK, 0 rows affected (0.00 sec)
    mysql> CREATE TABLE pctable
        -> (
        ->     id INT NOT NULL AUTO_INCREMENT,
        ->     parent_id INT,
        ->     PRIMARY KEY (id)
        -> ) ENGINE=MyISAM;
    Query OK, 0 rows affected (0.05 sec)
    mysql> INSERT INTO pctable (parent_id) VALUES (0);
    Query OK, 1 row affected (0.00 sec)
    mysql> INSERT INTO pctable (parent_id) SELECT parent_id+1 FROM pctable;
    Query OK, 1 row affected (0.00 sec)
    Records: 1  Duplicates: 0  Warnings: 0
    mysql> INSERT INTO pctable (parent_id) SELECT parent_id+2 FROM pctable;
    Query OK, 2 rows affected (0.00 sec)
    Records: 2  Duplicates: 0  Warnings: 0
    mysql> INSERT INTO pctable (parent_id) SELECT parent_id+3 FROM pctable;
    Query OK, 4 rows affected (0.00 sec)
    Records: 4  Duplicates: 0  Warnings: 0
    mysql> INSERT INTO pctable (parent_id) SELECT parent_id+4 FROM pctable;
    Query OK, 8 rows affected (0.01 sec)
    Records: 8  Duplicates: 0  Warnings: 0
    mysql> INSERT INTO pctable (parent_id) SELECT parent_id+5 FROM pctable;
    Query OK, 16 rows affected (0.00 sec)
    Records: 16  Duplicates: 0  Warnings: 0
    mysql> SELECT * FROM pctable;
    +----+-----------+
    | id | parent_id |
    +----+-----------+
    |  1 |         0 |
    |  2 |         1 |
    |  3 |         2 |
    |  4 |         3 |
    |  5 |         3 |
    |  6 |         4 |
    |  7 |         5 |
    |  8 |         6 |
    |  9 |         4 |
    | 10 |         5 |
    | 11 |         6 |
    | 12 |         7 |
    | 13 |         7 |
    | 14 |         8 |
    | 15 |         9 |
    | 16 |        10 |
    | 17 |         5 |
    | 18 |         6 |
    | 19 |         7 |
    | 20 |         8 |
    | 21 |         8 |
    | 22 |         9 |
    | 23 |        10 |
    | 24 |        11 |
    | 25 |         9 |
    | 26 |        10 |
    | 27 |        11 |
    | 28 |        12 |
    | 29 |        12 |
    | 30 |        13 |
    | 31 |        14 |
    | 32 |        15 |
    +----+-----------+
    32 rows in set (0.00 sec)
    

    Here are what the functions generate for each value:

    Read the rest at the sourceFrom Database Administrators Stack Exchange: asked by David LeBauer, answered by RolandoMySQLDBA (CC BY-SA 3.0)

  • How to manage DEFAULT PRIVILEGES for USERs on a DATABASE vs SCHEMA?PostgreSQL

    Postgres 14 adds the predefined roles pg_read_all_data and pg_write_all_data, which allow shortcuts for the purposes implied by the names.

    Where can I find a decent guide, tutorial or video series on this?

    You'll find everything in the manual. Links below.
    Granted, the matter is not trivial and sometimes confusing. Here is a recipe for the use case:

    Recipe

    I want to have it configured so only the hostdb_admin can create (and drop and alter) tables;
    the hostdb_mgr can read, insert, update and delete on all tables by default;
    and the hostdb_usr can only read all tables (and views).

    As superuser postgres:

    CREATE USER schma_admin WITH PASSWORD 'youwish';
    -- CREATE USER schma_admin WITH PASSWORD 'youwish' CREATEDB CREATEROLE; -- see below
    CREATE USER schma_mgr   WITH PASSWORD 'youwish2';
    CREATE USER schma_usr   WITH PASSWORD 'youwish3';
    

    If you want a more powerful admin that can also manage databases and roles, add the role attributes CREATEDB and CREATEROLE above.

    Grant each role to the next higher level, so all levels "inherit" at least the set of privileges from the next lower level (cascading):

    GRANT schma_usr TO schma_mgr;
    GRANT schma_mgr TO schma_admin;
    CREATE DATABASE hostdb;
    REVOKE ALL ON DATABASE hostdb FROM public;  -- see notes below!
    GRANT CONNECT ON DATABASE hostdb TO schma_usr;  -- others inherit
    \connect hostdb  -- psql syntax
    

    I am naming the schema schma (not hostdb which would be confusing). Pick any name. Optionally make schma_admin the owner of the schema:

    CREATE SCHEMA schma AUTHORIZATION schma_admin;
    SET search_path = schma;  -- see notes
    ALTER ROLE schma_admin IN DATABASE hostdb SET search_path = schma; -- not inherited
    ALTER ROLE schma_mgr   IN DATABASE hostdb SET search_path = schma;
    ALTER ROLE schma_usr   IN DATABASE hostdb SET search_path = schma;
    GRANT USAGE  ON SCHEMA schma TO schma_usr;
    GRANT CREATE ON SCHEMA schma TO schma_admin;
    ALTER DEFAULT PRIVILEGES FOR ROLE schma_admin
    GRANT SELECT                           ON TABLES TO schma_usr;  -- only read
    ALTER DEFAULT PRIVILEGES FOR ROLE schma_admin
    GRANT INSERT, UPDATE, DELETE, TRUNCATE ON TABLES TO schma_mgr;  -- + write, TRUNCATE optional
    ALTER DEFAULT PRIVILEGES FOR ROLE schma_admin
    GRANT USAGE, SELECT, UPDATE ON SEQUENCES TO schma_mgr;  -- SELECT, UPDATE are optional 
    

    For and drop and alter see notes below.

    Postgres 14 adds the predefined, non-login roles pg_read_all_data and pg_write_all_data to give read-only / write-only access to all objects in all schemas. That goes beyond what's being asked here, but may be useful. See:

    As things get more advanced I'll also have questions to apply similar restrictions on TRIGGERS, stored procedures, VIEWS and perhaps other objects.

    Views are special.

    The manual:

    ... (but note that ALL TABLES is considered to include views and foreign tables).

    And for Updatable Views:

    Read the rest at the sourceFrom Database Administrators Stack Exchange: asked by Jim Dennis, answered by Erwin Brandstetter (CC BY-SA 4.0)

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