semvec/pypi-packages huggingface dataset:
abqpy 2016.9
Type hints for Abaqus/Python scripting
Requires Python: >=3.8

# abqpy 2016

[![tests](https://github.com/haiiliin/abqpy/actions/workflows/tests.yml/badge.svg)](https://github.com/haiiliin/abqpy/actions/workflows/tests.yml)
[![rtd](https://readthedocs.org/projects/abqpy/badge/?version=latest)](https://readthedocs.org/projects/abqpy/)
[![coveralls](https://coveralls.io/repos/github/haiiliin/abqpy/badge.svg?branch=2016)](https://coveralls.io/github/haiiliin/abqpy?branch=2016)
[![python](https://img.shields.io/badge/Python-3.8%2B-brightgreen)](https://www.python.org/downloads/)
[![abaqus](https://img.shields.io/badge/Abaqus-2016%2B-brightgreen)](https://www.3ds.com/products-services/simulia/products/abaqus/)
[![Crowdin](https://badges.crowdin.net/abqpy-locale/localized.svg)](https://crowdin.com/project/abqpy-locale)

Read this in other languages: [English](README.md), [简体中文](README-zh-cn.md).

Type hints for Abaqus/Python scripting

`abqpy` is a Python package providing type hints for Python scripting of Abaqus, you can
use it to write your Python script of Abaqus fluently, even without doing anything in Abaqus.
It also provides some simple APIs to execute the Abaqus commands so that you can run your
Python script to build the model, submit the job and extract the output data in just one
Python script, even without opening the Abaqus/CAE.

- GitHub repository: [https://github.com/haiiliin/abqpy](https://github.com/haiiliin/abqpy)
- PyPI: [https://pypi.org/project/abqpy](https://pypi.org/project/abqpy)
- Conda: [https://anaconda.org/conda-forge/abqpy](https://anaconda.org/conda-forge/abqpy)
- Documentation: [https://haiiliin.github.io/abqpy](https://haiiliin.github.io/abqpy)

## Quick Start

Make sure <a href="https://www.python.org/downloads/"> <img src="https://img.shields.io/badge/Python-3.8%2B-brightgreen" align=center /> </a> and
<a href="https://www.3ds.com/products-services/simulia/products/abaqus/"> <img src="https://img.shields.io/badge/Abaqus-2016%2B-brightgreen" align=center /> </a>
are installed on your computer,
open `cmd` or `terminal`, type:

```
pip install -U abqpy==2016.*  # change the major version to match your Abaqus version
```

Then, open your Abaqus/Python script in your favorite IDE with Python language support,
run the script with Python 3.8+ (just do it!), see the magic happens.
For more information, please refer to the [documentation](https://haiiliin.github.io/abqpy).

## Pull Requests are Welcome

Since `abqpy` is reconstructed from the official Abaqus documentation,
many of the docstrings are not well formatted, for example, the Raises section,
the math equations, the attributes of the objects, due to the limitation of
my time, those things are left behind, if anyone is willing to make any
contributions, please feel free to create your pull requests.

Please refer [CONTRIBUTING](https://github.com/haiiliin/abqpy/blob/main/.github/CONTRIBUTING.md) for contribution guidelines.

## Screenshots

![screenshot](https://raw.githubusercontent.com/haiiliin/abqpy/main/docs/source/images/model-code.gif)

![screenshot](https://raw.githubusercontent.com/haiiliin/abqpy/main/docs/source/images/output-code.gif)
m4s2mp3 0.1.3
A Python package for converting M4S audio files to MP3 format.
Requires Python: >=3.9

# m4s2mp3

A Python package for converting M4S audio files to MP3 format.

## Features

-   Convert single M4S files to MP3
-   Convert all M4S files in a directory to MP3
-   Merge multiple M4S files into a single MP3 file
-   Command-line interface for easy usage

## Installation

```bash
pip install m4s2mp3
```

Note: This package depends on `pydub` which requires `ffmpeg` to be installed on your system. Please follow the
[pydub installation guide](https://github.com/jiaaro/pydub#installation) to install ffmpeg.

## Usage

### As a command-line tool

```bash
# Convert a single file
m4s2mp3 input.m4s

# Convert a single file with custom output name
m4s2mp3 input.m4s -o output.mp3

# Convert all m4s files in a directory
m4s2mp3 /path/to/m4s/files/

# Convert all m4s files to a custom output directory
m4s2mp3 /path/to/m4s/files/ -o /path/to/output/

# Merge all m4s files into a single mp3 file
m4s2mp3 /path/to/m4s/files/ --merge -o output.mp3
```

### As a Python library

```python
from m4s2mp3 import convert_m4s_to_mp3, convert_multiple_m4s_to_mp3, merge_m4s_files_to_mp3

# Convert a single file
convert_m4s_to_mp3("input.m4s", "output.mp3")

# Convert all m4s files in a directory
convert_multiple_m4s_to_mp3("/path/to/m4s/files/", "/path/to/output/")

# Merge all m4s files into a single mp3 file
merge_m4s_files_to_mp3("/path/to/m4s/files/", "merged_output.mp3")
```

## API

### convert_m4s_to_mp3(input_path: str, output_path: str = None) -> str

Convert a single M4S file to MP3 format.

-   `input_path`: Path to the input M4S file
-   `output_path`: Path for the output MP3 file. If not provided, uses the same name as input with .mp3 extension.
-   Returns: Path to the converted MP3 file

### convert_multiple_m4s_to_mp3(input_dir: str, output_dir: str = None) -> list

Convert all M4S files in a directory to MP3 format.

-   `input_dir`: Directory containing M4S files
-   `output_dir`: Directory for output MP3 files. If not provided, uses the same directory as input files.
-   Returns: List of paths to converted MP3 files

### merge_m4s_files_to_mp3(input_dir: str, output_path: str) -> str

Merge all M4S files in a directory into a single MP3 file.

-   `input_dir`: Directory containing M4S files
-   `output_path`: Path for the output MP3 file
-   Returns: Path to the merged MP3 file

## License

MIT