Home Common Problem API appliances are extremely agile and simple

API appliances are extremely agile and simple

Mar 21, 2024 pm 04:13 PM
pip installation api device

Insert this API device into the database just like you would a toaster and add bread, and add rules and Python code. This automation provides superior agility and simplicity with all the flexibility of a framework. Creating a modern API-based web application using traditional frameworks would typically take weeks, but with API Logic Server it can be done in just minutes, even with no framework or Python knowledge. It runs a multi-page admin application and a multi-table JSON:API with Swagger, out of the box, supporting custom client application development, ad hoc application integration and agile collaboration based on working software.

API appliances are extremely agile and simple

Just like you can plug in a toaster and add bread...

You can plug this API Appliance into a database , and add rules and Python.

API Appliance 作为烤面包机

Automation can provide:

  • Exceptional agility and simplicity

  • With all the flexibility of a framework

Creating a modern, API-based web application using a traditional framework is a daunting task. This may take several weeks and extensive knowledge of the framework.

In this article, we'll use API Logic Server (open source, available here) to create it in minutes instead of weeks or months. And, we'll show how to do it with almost zero framework knowledge or even Python knowledge. We'll even show you how to add message-based integration.

1. Insert it into the database

The following is how to insert the ApiLogicServer device into the database:

1

$ ApiLogicServer create-and-run --project-name=sample_ai -- db-url=sqlite:///sample_ai.sqlite

Copy after login

No database? Use AI to create one, as described in the article Artificial Intelligence and Rules for Agile Microservices in Minutes.

It runs: Management Applications and APIs

Instantly, you have a running system, as shown in the split screen below:

  • Multi-page management application (shown on the left), powered by

  • Multi-table JSON:API with Swagger (shown on the right Pictured)

运行系统显示多页面管理应用程序和多表 JSON:API 与 Swagger

So, out of the box, you can support:

  • Customization Client Application Development

  • Ad hoc application integration

  • Agile collaboration based on working software

Instead of spending weeks coding complex and time-consuming frameworks, #you now have working software.

Containerization

API Logic Server can be run as a container or standard pip installation. In either case, scripts are provided to containerize your project for deployment, such as to the cloud.

2. Add logic rules

Instant work software is great: just one command can replace weeks of work, and the knowledge required is next to zero. But without logic execution, it's nothing more than a cool demo.

Behind the running application is a standard project. Open it with an IDE, then:

  • Use code completion to declare the logic.

  • Use the debugger to debug it.

API appliances are extremely agile and simple

The above code is not traditional procedural logic, but declarative. As with spreadsheets, you can declare rules for multi-table derivation and constraints. These rules handle all database access, dependencies, and ordering.

The results are remarkable:

  • The five spreadsheet-like rules above execute the same logic as 200 lines of Python.

  • The backend part of the system is 40 times simpler.

Similar rules are provided to grant row-level access based on user roles.

3. Add Python for increased flexibility

Automation and rules provide superior agility with little in-depth knowledge required. However, automation always has its limitations: you need flexibility to deliver complete results.

For flexibility, the device allows you to use Python and popular software packages to get the job done. Below, we customize pricing discounts and send Kafka messages:

定制定价折扣和发送 Kafka 消息

Scalable Declarative Automation

The screenshot above demonstrates Extraordinary agility. Using traditional frameworks, this system could take weeks or months.

But it’s not just agility. The level of abstraction here is very high, bringing a level of simplicity that enables you to create microservices - even if you are new to Python or frameworks like Flask and SQLAlchemy.

There are 3 key elements to achieve this speed and simplicity:

1. Microservice automation: No need to do slow and complex framework coding, just plug into the database to get instant API and Management application.

2. Logic automation with declarative rules: Rules are not boring code that describes how logic runs, but express what you want to accomplish.

3. Extensibility: Use IDEs, Python, and standard packages (such as Flask and SQLAlchemy) to complete the remaining elements.

This kind of automation equipment can provide significant benefits, allowing more people to do more things.

The above is the detailed content of API appliances are extremely agile and simple. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

To solve the problem of slow pip installation, try this pip domestic source tutorial To solve the problem of slow pip installation, try this pip domestic source tutorial Jan 17, 2024 am 09:13 AM

Are you experiencing slow pip installation? Try this pip domestic source tutorial, you need an overview of specific code examples: In the process of developing using Python, we often use the pip command to install various dependency packages. However, due to well-known reasons, foreign pip sources sometimes become very slow or even unable to connect. To solve this problem, we can use the domestic pip source to speed up the download speed. This article will introduce how to configure the domestic pip source and give specific code examples. Step 1: Back up the original source files before starting the configuration

Simple steps to install whl files using pip Simple steps to install whl files using pip Jan 04, 2024 pm 01:04 PM

How to easily install whl files using pip In Python development, we often use various third-party libraries to provide additional functional support. As a Python package management tool, pip can quickly install and manage these third-party libraries. Usually when we use pip to install a library, we install it by executing the pipinstall command and adding the library name. But sometimes, we will encounter a special situation: we need to install a .whl file instead of a regular .py file. So how to make

How to speed up pip download speed How to speed up pip download speed Feb 02, 2024 pm 12:03 PM

How to solve the problem of slow download speed of pip Introduction: When developing in Python, we often use the pip tool to install various third-party modules. However, sometimes we encounter the problem of slow pip download speed, which will cause some trouble to our development work. This article will introduce some methods to solve the problem of slow pip download speed, and give specific code examples to help readers better solve this problem. 1. Change the pip source. By default, pip will use the official source to download modules. However, due to the network environment

Solving common pandas installation problems: interpretation and solutions to installation errors Solving common pandas installation problems: interpretation and solutions to installation errors Feb 19, 2024 am 09:19 AM

Pandas installation tutorial: Analysis of common installation errors and their solutions, specific code examples are required Introduction: Pandas is a powerful data analysis tool that is widely used in data cleaning, data processing, and data visualization, so it is highly respected in the field of data science . However, due to environment configuration and dependency issues, you may encounter some difficulties and errors when installing pandas. This article will provide you with a pandas installation tutorial and analyze some common installation errors and their solutions. 1. Install pandas

Top 7 Linux GPU Monitoring and Diagnostic Command Line Tools Top 7 Linux GPU Monitoring and Diagnostic Command Line Tools Feb 11, 2024 pm 08:48 PM

A video card is a special circuit board used to control what is displayed on a computer monitor. It is also called a Graphics Processing Unit (GPU) and computes 3D images and graphics for Linux games and other purposes. Let’s take a look at the top 7 Linux GPU monitoring and diagnostics command line tools to solve your problems. The following tools are available on Linux for GPU monitoring and diagnostic purposes, as well as on other operating systems such as FreeBSD. Today, most Linux and FreeBSD users use Nvidia, Intel, and AMD GPUs. LinuxGPU Monitoring and Diagnostics Command Line Tools We can use the following tools to monitor, diagnose, and inspect Linux or *BSD based systems. get graph

Understand the location and structure of pip installation package storage Understand the location and structure of pip installation package storage Jan 18, 2024 am 08:23 AM

To learn more about the storage location of packages installed by pip, you need specific code examples. Pip is a commonly used package management tool in the Python language. It is used to easily install, upgrade and manage Python packages. When using pip to install a package, it will automatically download the corresponding package file from PyPI (Python Package Index) and install it to the specified location. So, where are the packages installed by pip stored? This is a problem that many Python developers will encounter. This article will delve into the location of the packages installed by pip and provide

Efficient installation: tips and tricks to quickly install the pandas library Efficient installation: tips and tricks to quickly install the pandas library Feb 21, 2024 am 09:45 AM

Efficient Installation: Tips and tricks for quickly installing the pandas library, requiring specific code examples Overview: Pandas is a powerful data processing and analysis tool that is very popular among Python developers. However, installing the pandas library may sometimes face some challenges, especially if the network conditions are poor. This article will introduce some tips and tricks to help you quickly install the pandas library, and provide specific code examples. Install using pip: pip is the official package manager for Python

Guide to installing the Flask framework: Detailed steps to help you install Flask correctly Guide to installing the Flask framework: Detailed steps to help you install Flask correctly Feb 18, 2024 pm 10:51 PM

Flask framework installation tutorial: Teach you step by step how to correctly install the Flask framework. Specific code examples are required. Introduction: Flask is a simple and flexible Python Web development framework. It's easy to learn, easy to use, and packed with powerful features. This article will lead you step by step to correctly install the Flask framework and provide detailed code examples for reference. Step 1: Install Python Before installing the Flask framework, you first need to make sure that Python is installed on your computer. You can start from P