Library containing the core modules for the kingdom-python-server.

Overview

🏰 Kingdom Core

Library containing the core modules for the kingdom-python-server.

Installation

Use the package manager pip to install kingdom-core.

pip install kingdom-core

You can use poetry as well.

poetry add kingdom-core

Usage

from kingdom_core.utils import files

orm_files = files.find("orm.py", "/")

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

This file is based on Make a README.

You might also like...
Very simple FTP client, sync folder to FTP server, use python, opensource
Very simple FTP client, sync folder to FTP server, use python, opensource

ftp-sync-python Opensource, A way to safe your data, avoid lost data by Virus, Randsomware Some functions: Upload a folder automatically to FTP server

Simple threaded Python Rickroll server. Listens on port 23 by default.

Terminal Rickroll Simple threaded Python Rickroll server. Listens on port 23 by default. Rickroll video made using Video-To-Ascii and the standard ric

Python implementation of the Session open group server

API Documentation CLI Reference Want to build from source? See BUILDING.md. Want to deploy using Docker? See DOCKER.md. Installation Instructions Vide

🎥 PYnema is a simple UDP server written in python, allows you to watch downloaded videos.

🎥 PYnema is a simple UDP server written in python, allows you to watch downloaded videos.

A Calendar subscribe server for python

cn-holiday-ics-server A calendar subscribe server 直接使用我搭建的服务 订阅节假日:https://cdxy.fun:9999/holiday 订阅调休上班:https://cdxy.fun:9999/workday 节假日和调休上班在一起的版本:h

TsuserverMoS - A Python-based server for Attorney Online,

tsuserverMoS A Python-based server for Attorney Online, forked from RealKaiser/tsuserverCC Requires Python 3.7+ and PyYAML. Changes/additions from tsu

Serves some data over HTTP, once. Based on the built-in Python module http.server

serve-me-once Serves some data over HTTP, once. Based on the built-in Python module http.server.

A simple multi-threaded time server and client in python.

time-server-client A simple multi-threaded time server and client in Python. This uses the latest match/case command found in Python 3.10 so requires

BlueHawk is an HTTP/1.1 compliant web server developed in python

This project is done as a part of Computer Networks course. It aims at the implementation of the HTTP/1.1 Protocol based on RFC 2616 and includes the basic HTTP methods of GET, POST, PUT, DELETE and HEAD.

Comments
  • Postgres schemas support

    Postgres schemas support

    📝 Description

    This PR adds schema segregation support for Postgres databases, looking towards a microservices migration model.

    🛠️ Changes

    • Added schema on orm configuration (3b5e25d)
    • Removed useless root aggregate (a7f6ddf, 60a7b16)
    • Added legacy support to use without schemas (22dafea)
    opened by williamabreu 2
  • Base DDD modeling (pre-release v0.3.0)

    Base DDD modeling (pre-release v0.3.0)

    📝 Description

    This PR aims to provide a general model to be used in the T10's projects (first in the Zoe Core), giving a high-level DDD abstraction and some sort of code quality enforcements. The goal is to provide a DDD framework over the SQLAlchemy library, with SQL templating capability for native queries.

    🛠️ Changes

    • Added dynamic start mappers, ready to be used with Plugin Pattern (5877191)
    • Standardized the docstring format (1ceeede)
    • Renamed library to kingdom-sdk (b0d9ccd)
    • Activated Mypy strict mode, very aggressive, but can be more! (46b1ff0)
    • Added cast to bool from string function (5c93c1d)
    • Added generate_now time function (6931adf)
    • Added dynamic loader modules (a9aaa06)
    • Added split module and class (eebc0aa)
    • Added DDD base models (8cd10ab, 45210c5, d9391e7)
    • Added orm factories (275fd9d)
    • Added orm mappers (3bff7e6)
    • Added Repository (23d0dcf, d17127e)
    • Added Unit of Work (b0467c3, 9d75d7d)
    • Standardized to use factory method instead default constructor (afba7e8)
    • Added DQL interface for CQRS (aefee53, b40caef)
    • Added Redis message broker (d6c0519, b460aed)
    • Added generic messagebus (32970be, 4626acc)
    • Added tests

    ⚠️ Notes

    opened by williamabreu 1
  • General improvements

    General improvements

    📝 Description

    Some code base improvements identified when using when using the tool in other projects.

    🛠️ Changes

    ⚠️ Notes

    • Left some comments in alembic.ini to a possible improvement in revision file name templating.
    • If the changes here make sense, remember to increase the lib version.
    • should the target branch be dev or main?
    opened by andreyrcdias 0
  • Init events on Aggregate in-memory

    Init events on Aggregate in-memory

    Use the orm.reconstructor decorator on the events attribute for the Aggregate model to init and load it only on memory, according to the example on the Constructors and Object Initialization section of SQLAlchemy docs:

    from sqlalchemy import orm
    
    
    class MyMappedClass:
        def __init__(self, data):
            self.data = data
            # we need stuff on all instances, but not in the database.
            self.stuff = []
    
        @orm.reconstructor
        def init_on_load(self):
            self.stuff = []
    
    enhancement 
    opened by filipelobo 0
Releases(v1.0.0)
  • v1.0.0(Dec 27, 2021)

  • v0.3.0(Nov 16, 2021)

    [0.3.0] - 2021-11-16

    Added

    • Added base implementation of CQRS Pattern.
    • Added base implementation of Unit of Work Pattern.
    • Added base implementation of Repository Pattern.
    • Added base implementation of Message Bus with dependency injection.
    • Added base implementation of Redis Message Broker.
    • Added higher-order functions to database mappers and factories.
    • Added abstract DDD Entity model.
    • Added generate now time utility.
    • Added root configuration handled by environment variables.
    • Added casting to bool from string utility.
    • Added json serializer utility.

    Changed

    • Renamed project's name from kingdom-core to kingdom-sdk.
    • Increased MyPy rules to be more aggressive.
    Source code(tar.gz)
    Source code(zip)
Owner
T10
🛠 We make computer do what we want. Mostly on the web
T10
Test - Python project for Collection Server and API Server

QProjectPython Collection Server 와 API Server 를 위한 Python 프로젝트 입니다. [FastAPI참고]

null 1 Jan 3, 2022
This is a Client-Server-System which can share the screen from the server to client and in the other direction.

Screenshare-Streaming-Python This is a Client-Server-System which can share the screen from the server to client and in the other direction. You have

VFX / Videoeffects Creator 1 Nov 19, 2021
This is a Client-Server-System which can send audio from a microphone from the server to client and in the other direction.

Audio-Streaming-Python This is a Client-Server-System which can send audio from a microphone from the server to client and in the other direction. You

VFX / Videoeffects Creator 0 Jan 5, 2023
No-dependency, single file NNTP server library for developing modern, rfc3977-compliant (bridge) NNTP servers.

nntpserver.py No-dependency, single file NNTP server library for developing modern, rfc3977-compliant (bridge) NNTP servers for python >=3.7. Develope

Manos Pitsidianakis 44 Nov 14, 2022
Script and library to wait for a DNS authority server to get its configuration.

DNSWait dnswait is a small script to wait for the "propagation" of a namserver configuration. Installing It's as easy as: python -m pip install dnswai

Julien Palard 14 Jan 17, 2022
Client library for relay - a service for relaying server side messages to the client side browsers via websockets.

Client library for relay - a service for relaying server side messages to the client side browsers via websockets.

getme 1 Nov 10, 2021
An ftp syncing python package that I use to sync pokemon saves between my hacked 3ds running ftpd and my server

Sync file pairs over ftp and apply patches to them. Useful for using ftpd to transfer ROM save files to and from your DS if you also play on an emulator. Setup a cron job to check for your DS's ftp server periodically to setup automatic syncing. Untested on windows. It may just work out of the box, unsure though.

null 17 Jan 4, 2023
A SOCKS proxy server implemented with the powerful python cooperative concurrency framework asyncio.

asyncio-socks-server A SOCKS proxy server implemented with the powerful python cooperative concurrency framework asyncio. Features Supports both TCP a

Amaindex 164 Dec 30, 2022
Extended refactoring capabilities for Python LSP Server using Rope.

pylsp-rope Extended refactoring capabilities for Python LSP Server using Rope. This is a plugin for Python LSP Server, so you also need to have it ins

null 36 Dec 24, 2022
A simple DHCP server and client simulation with python

About The Project This is a simple DHCP server and client simulation. I implemented it for computer network course spring 2021 The client can request

shakiba 3 Feb 8, 2022