Back end

Python development in Tunisia.

Python: where the data and the AI work live. Python is a general-purpose language that became the default for data processing, machine learning and AI integration.

  • FastAPI and Django
  • Data and AI
  • Automation
On this page
  1. 01When to choose it
  2. 02Strengths
  3. 03Limits
  4. 04What we build
  5. 05Architecture
  6. 06Hiring and cost
  7. 07Questions
  8. 08Related
  9. →Next step

It is also the language Odoo and Django are written in. When the hard part of a product is what happens to the data, Python is usually where that part belongs.

01When to choose it

When Python is the right call.

Choose Python when the core of the work is data: importing and cleaning files, reconciling records, generating reports, calling language models, extracting information from documents, or running a model you trained. Its libraries for this (pandas, NumPy, the official AI SDKs, document parsers) are the most complete of any language.

It is also the right language for automations that glue business systems together, for scripts that run on a schedule, and for anything that extends Odoo. For a classic web backend Python works well through Django or FastAPI; if your front end is TypeScript and the backend is mostly a plain API, Node.js can keep the whole team in one language.

Go, Node.js or Python: by the work the backend does.

Most backends can be written in any of the three. The difference shows in what the backend spends its time doing.

APIs between a front end, a database and other services

Go
Good. More code to write, less to run.
Node.js
Best fit when the front end is TypeScript: shared types and one language.
Python
Good, fastest to write with Django for forms and admin screens.

Many users at once, chat, live updates

Go
Best. Concurrency is part of the language.
Node.js
Good for connections that mostly wait; heavy work blocks everything.
Python
Weakest of the three without extra infrastructure.

Long-running jobs and schedulers

Go
Best. Workers run for months on little memory.
Node.js
Works with a queue and separate workers.
Python
Works with a queue and separate workers.

AI, data processing, machine learning

Go
Call it from Go; do not write it in Go.
Node.js
Fine for calling model APIs.
Python
Best. The data and AI tooling lives here.

Lowest hosting cost as the product grows

Go
Best. Small binaries, little memory.
Node.js
Moderate.
Python
Moderate to high for the same load.

Easiest to hire for

Go
Smallest pool; good engineers learn it in weeks.
Node.js
Largest pool.
Python
Large pool.

A back office of forms over a database

Go
Slowest to write.
Node.js
Good with NestJS.
Python
Fastest with Django.

Dextra's backend is Go, because it carries payments, chat and background work. This website's content system runs on Node.js. We would use Python for the part of a product that is data or machine learning.

02Strengths

What Python does well.

01Data and AI libraries
The widest choice of maintained libraries for data work, document processing, machine learning and LLM integration.
02Readability
Python code is easy to read for engineers and, often, for the analysts who will check the logic.
03Two strong web frameworks
Django when you want everything included; FastAPI for typed, fast APIs with automatic documentation.
04Automation
Scheduled jobs, file processing and integrations are short, clear scripts rather than projects.

03Limits

Where Python falls short.

Every tool has a cost. These are the ones we tell you about before you commit, not after.

01Raw speed
Plain Python is slower than compiled languages for tight loops. Heavy numeric work runs in libraries written in C, and that is usually enough.
02Concurrency
In the standard interpreter, the global interpreter lock limits CPU-bound threads. Parallel work uses processes, queues or async I/O instead.
03Packaging
Environments and dependencies need discipline. We pin versions and use a modern tool such as uv or Poetry so builds are reproducible.

04What we build

What we build with it.

01

AI features and agents.

Document extraction, classification, summarisation and assistants that call language models and act on your own systems.

02

Data pipelines and reports.

Imports from spreadsheets and other systems, cleaning, reconciliation and scheduled reports.

03

APIs.

FastAPI services that expose data or a model to a web or mobile app.

04

Odoo modules and scripts.

Custom Odoo modules, data migrations and integrations, all in Python.

05Architecture

The shape we usually start from.

A starting point. We adjust it for each project once the scope is written down.

  1. 01

    Service boundary

    A FastAPI or Django service with a typed contract, so the rest of the product does not care that this part is Python.

  2. 02

    Workers for long jobs

    A task queue such as Celery or RQ for document processing, AI calls and imports that take more than a request should.

  3. 03

    Data store

    PostgreSQL for application data, with pgvector when embeddings need to sit next to the records they describe.

  4. 04

    Evaluation and monitoring

    For AI work, a fixed set of test cases run on every change, and logs that show what the model was asked and what it answered.

06Hiring and cost

Hiring, handover and cost.

Python is one of the most widely taught languages, so juniors are easy to find in Tunisia and in Europe. Developers who combine solid backend practice with data or AI experience are rarer. We write the code as a backend engineer would (typed, tested, packaged) so a generalist can maintain it.

For AI work, the cost of the model calls runs alongside the cost of building. We estimate both and design to keep the running cost predictable, for example by caching and by using smaller models where they are good enough. The number comes out of scoping.

How we price a project

07Questions

Questions we get asked.

Python or Node.js?

Python when the hard part is data, AI or Odoo. Node.js when the hard part is APIs, integrations and real time with a TypeScript front end. Many products use both, each for its part.

Do you build AI features with Python?

Yes. Python is where the AI tooling is most complete. We connect language models to your documents and systems, and measure the results on real examples before anything goes live.

FastAPI or Django?

Django when you want an admin panel, authentication and an ORM out of the box. FastAPI for a focused API or a service that wraps a model. Our Django page goes into more detail.