Code Monkey home page Code Monkey logo

nava's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nava's Issues

Logo

Description

Add logo

Decorator issue with keyword arguments

Description

Decorators cannot handle keyword arguments

Steps/Code to Reproduce

>>> from nava import play
>>> play(sound_path="alarm.wav")

Expected Behavior

Play sound

Actual Behavior

Traceback (most recent call last):
    ...
IndexError: tuple index out of range

Operating System

Windows 10

Python Version

Python 3.8

nava Version (Use : nava.__version__)

Nava 0.1

[Feature]: Support Notebook Environment

Describe the feature you want to add

Supporting playing sound in Jupyter notebook environment

Describe your proposed solution

No response

Describe alternatives you've considered, if relevant

No response

Additional context

No response

Decorator hides parameter

Description

The decorator hides the parameters of the function
image

Operating System

Windows 10

Python Version

Python 3.8

nava Version (Use : nava.__version__)

Nava 0.1

We should use @wraps from functools module like here

Orphan processes bug

Description

Orphan processes bug

Steps/Code to Reproduce

import time
from nava import play, stop
for _ in range(1000):
    sound_id = play("alarm.wav", async_mode=True)
    time.sleep(4)
    stop(sound_id)

Expected Behavior

Normal behavior

Actual Behavior

Receiving numerous resource warnings related to a large number of orphan processes

Operating System

Ubuntu 18.04

Python Version

Python 3.9

nava Version (Use : nava.__version__)

Nava v0.3

Add tests

Description

Add tests for different platforms

  • Linux
  • macOS
  • Windows

Shell injection

Description

We use subprocess to play sound in Linux and macOS (__play_linux and __play_mac functions) so we should prevent possible shell injections from sound_path.

  1. It's better to implement this method as a decorator (like @input_check)
  2. We know that sound_path should be a path

CLI

Description

Add CLI options

nava alarm.wav
nava --file="alarm.wav"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.