Marshall python objects to and from JSON

Pymarshaler Pymarshaler allows you to marshal and unmarshal any python object directly to and from a JSON formatted string. Pymarshaler takes advantage of python’s new typing support. By reading class init param types, we are able to walk down nested JSON structures and assign appropriate values. Basic Usage Declare a class with typing information class Test: def __init__(self, name: str): self.name = name That’s it! We can now marshal, and more importantly, unmarshal this object to and from JSON. from […]

Read more

Python library for Seeedstudio Grove devices

grove.py Python library for Seeedstudio Grove Devices on embeded Linux platform, especially good on below platforms: Coral Dev Board NVIDIA Jetson Nano Raspberry Pi # Architecture To operate grove sensors, the grove.py depends many hardware interface libraries such as mraa/upm/smbus2. For beginner or library user only, please install with online method. For developer or advanced user, please install dependencies and then install grove.py with source code. Online install install/update all dependencies and latest grove.py curl -sL https://github.com/Seeed-Studio/grove.py/raw/master/install.sh | sudo bash […]

Read more

A framework for multi-wavelength/multi-messenger analysis

threeML A framework for multi-wavelength/multi-messenger analysis for astronomy/astrophysics. Astrophysical sources are observed by different instruments at different wavelengths with an unprecedented quality. Putting all these data together to form a coherent view, however, is a very difficult task. Indeed, each instrument and data type has its own ad-hoc software and handling procedure, which present steep learning curves and do not talk to each other. The Multi-Mission Maximum Likelihood framework (3ML) provides a common high-level interface and model definition, which allows […]

Read more

Python data mapper and query builder for SQL databases

Estoult Estoult is a Python toolkit for data mapping with an integrated query builder for SQL databases. It currently supports MySQL, PostgreSQL, and SQLite. Features: Not an ORM. Estoult doesn’t attempt to apply relational algebra to objects. Concise and composable (sub)queries. Easy debugging by displaying any generated SQL in a readable format. Fast. Estoult is NOT an ORM. Estoult only works with Python 3.6+ and is primarily tested on Python 3.9+. Installation Install Estoult through pip: pip install estoult Contributing […]

Read more

A test framework for Python with a focus on productivity and readability

Ward Ward is a modern test framework for Python with a focus on productivity and readability. Features Descriptive test names: describe what your tests do using strings, not function names. @test(“1 + 2 == 3″) def _(): assert 1 + 2 == 3 Modular test dependencies: manage test setup/teardown code using fixtures that rely on Python’s import system, not name matching. @fixture def user(): return User(name=”darren”) @test(“the user is called darren”) def _(u=user): assert u.name == “darren” Support for asyncio: […]

Read more

A free and open source crypto trading bot written in Python

Freqtrade Freqtrade is a free and open source crypto trading bot written in Python. It is designed to support all major exchanges and be controlled via Telegram. It contains backtesting, plotting and money management tools as well as strategy optimization by machine learning. Disclaimer This software is for educational purposes only. Do not risk money which you are afraid to lose. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS. […]

Read more

Build a Bulk File Rename Tool With Python and PyQt

Say you need to rename multiple files in your personal folder using a specific naming pattern. Doing that manually can be time-consuming and error-prone. So, you’re thinking of automating the file renaming process by building your own bulk file rename tool using Python. If so, then this tutorial is for you. In this tutorial, you’ll learn how to: Create the GUI for a bulk file rename tool using Qt Designer and PyQt Use PyQt threads to offload the file renaming […]

Read more

SMS Spam Detection Using LSTM – A Hands On Guide!

Introduction  In today’s world, almost everyone is using a mobile phone and all of them will receive messages(SMS/ email) daily on their phone. But the main thing is that many of the received messages will be spam and only a few of them are ham or required messages. In this article, we are going to create an SMS spam detection model which will help you to find whether an SMS is spam or not using LSTM. About Dataset: Here we […]

Read more

A simple bot to extract text from images with python

Text from image (OCR) A bot that extract text from images using the Tesseract OCR. Usage What do I need? A AWS key configured locally, see here. NodeJS. I tested with v8.9.0. A Telegram account. Installing # Install the Serverless Framework $ npm install serverless -g # Install the necessary plugins $ npm install # Get a bot from Telegram, sending this message to @BotFather $ /newbot # Put the token received into a file called serverless.env.yml, like this $ […]

Read more

An open-source Python Library for materials structural search

PyChemia PyChemia is an open-source Python Library for materials structural search. The purpose of the initiative is to create a method agnostic framework for materials discovery and design using a variety of methods from Minima Hoping to Soft-computing based methods. PyChemia is also a library for data-mining, using several methods to discover interesting candidates among the materials already processed. The core of the library is the Structure python class, it is able to describe periodic and non-periodic structures. As the […]

Read more
1 627 628 629 630 631 912