A tool for making python source difficult to read

obscurepy A tool for obscuring, or making python source code difficult to read. Installation This command will install obscurepy: python -m pip install obscurepy I would recommend installing it in a virtual environment as opposed to globally: python -m venv venv source venv/bin/activate python -m pip install obscurepy Limitations As this program is still in active development, there are many limitations. Below are some examples of what obscurepycan do. If it isn’t in the example, obscurepy probably can’t do it. […]

Read more

A CLI tool for AWS Athena service that can do auto-completion and syntax highlighting

AthenaCLI AthenaCLI is a command line interface (CLI) for the Athena service that can do auto-completion and syntax highlighting, and is a proud member of the dbcli community. Install Install via pip If you already know how to install python packages, then you can simply do: $ pip install athenacli Install via brew Homebrew users can install by: $ brew install athenacli If you don’t know how to install python packages, please check the Install page for more options (e.g […]

Read more

A Python client for WebHDFS

Python HDFS client Because the world needs yet another way to talk to HDFS from Python. Usage This library provides a Python client for WebHDFS. NameNode HA is supported by passing in both NameNodes. Responses are returned as nice Python classes, and any failed operation will raise some subclass of HdfsException matching the Java exception. Example usage: >>> fs = pyhdfs.HdfsClient(hosts=’nn1.example.com:50070,nn2.example.com:50070′, user_name=’someone’) >>> fs.list_status(‘/’) [FileStatus(pathSuffix=’benchmarks’, permission=’777′, type=’DIRECTORY’, …), FileStatus(…), …] >>> fs.listdir(‘/’) [‘benchmarks’, ‘hbase’, ‘solr’, ‘tmp’, ‘user’, ‘var’] >>> fs.mkdirs(‘/fruit/x/y’) […]

Read more

Numerical Methods with Python, Numpy and Matplotlib

Numerical Bric-a-Brac Collections of numerical techniques with Python and standard computational packages (Numpy, SciPy, Numba, Matplotlib …). Implicit Solver Folder implicit_solver Description Implicit Solver. Explore code generation of vectorized code for physics solver. Time Integrator : Baraff and Witkin’s Spring / Area / Bending / Collision Constraint Early code generator for vectorized code Path Tracing Folder path_tracing Description Path Tracer with Python and Numba Multithreading with Memory pool per-thread ConvNet Examples of convolution neural network architectures. ConvNet Convolution neural network […]

Read more

An easy-to-use and convenient Python wrapper for the Petfinder API

Petpy Petpy is an easy-to-use and convenient Python wrapper for the Petfinder API. Includes methods for parsing output JSON into pandas DataFrames for easier data analysis Installation petpy is easily installed through pip. pip install petpy The library can also be cloned or downloaded into a location of your choosing and then installed using the setup.pyfile per the following: git clone [email protected]:aschleg/petpy.git cd petpy python setup.py install Examples and usage An account must first be created with Petfinder to receive […]

Read more

Collecting useful Python snippets in order to enhance pythoneers’ coding experiences

Cheatsheet This project aims at collecting useful Python snippets in order to enhance pythoneers’ coding experiences. Please feel free to contribute if you have any awesome ideas for improvements to code snippets, explanations, etc. What’s New In Python 3 The official document, What’s New In Python, displays all of the most important changes. However, if you’re too busy to read the whole changes, this part provides a brief glance of new features in Python 3.    

Read more

A Discord bot that performs various functions

rikka-bot A Discord bot that performs various functions. Commands Right now, this bot’s prefix is ;. Main Commands Utility Commands @mention help – Returns a command list, along with your server’s prefix. ;help – Returns a command list. ;info – Returns information about the bot. ;paypal – Returns donation link to contribute to server hosting. ;vote – Returns this server’s vote link on discordbots.org. ;clever (text) – Returns the cleverbot response to the given text. ;gizoogle (text) – Translates a […]

Read more

A simple python script using Numpy and Matplotlib library

Mohr’s Circle Calculator A simple python script using Numpy and Matplotlib library to plot a Mohr’s Circle when given a two-dimensional state of stress. This is a really small personal project done for Department of Civil Engineering, Delhi Technological University (formerly, Delhi College of Engineering) for a course in Mechanics of Solid (Course Code – CE202). It is a simple program using Python, NumPy and Matplotlibwhich helps a user to plot Mohr’s Cirle when given the two-dimensional state of stress. […]

Read more

Python package provinding tools for artistic interactive applications using AI

Python package provinding tools for artistic interactive applications using AI Created by ReDrawing Campinas team for the OpenCV AI 2021 Competition. Stages Stages are the basic processing units of the redrawing package. They receive data objects from input channels, processes them and output data in the output channels. Examples of stages: Stage name Use OAK_Stage Handles a OAK camera. Can be changed using OAK_Substages, like a Body detector or a Hand gesture detector PCR_Viewer Visualizer for image, depth and body […]

Read more

How to Implement a First-Order Low-Pass Filter in Discrete Time

first-order-low-pass-filter This Jupyter notebook shows one way to implement a simple first-order low-pass filter on sampled data in discrete time. We often teach or learn about filters in continuous time, but then need to implement them in discrete time (e.g., in code) on data acquired at discrete sample times. This notebook shows one way to design and implement a simple first-order low-pass filter in discrete time. The example is written in Python and uses Matplotlib. Main File(s) Sample Output Here […]

Read more
1 591 592 593 594 595 972