Commit 6304e2e7 authored by Tanguy Le Carrour's avatar Tanguy Le Carrour
Browse files

License the code under the GNU General Public License.

parent a57315c9
This diff is collapsed.
# List of things to do
- [_] finish transiton to typer (imports, module name…)
- [ ] make presenter work with `echo` and `exit`: `Presenter(click.echo, sys.exit)`
this allows to stream the result and to simplify the entry point
[tool.poetry]
name = "splito"
version = "0.1.1"
description = "A tool to split audio files."
description = "Audio file splitter"
authors = ["Tanguy Le Carrour"]
license = "GPL-3.0-or-later"
......
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import pkg_resources
......
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from typing import Any
from click.testing import CliRunner, Result
......
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from abc import ABC, abstractmethod
from dataclasses import dataclass
import pathlib
......
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from mamba import describe, it # type: ignore
from robber import expect # type: ignore
......
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import click
from splito.infrastructure.pydub.tracks import PydubTracks
......
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import sys
from typing import List
......
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from robber import expect # type: ignore
from splito.infrastructure.click.audio_editor import extract
......
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from pydub import AudioSegment # type: ignore
from pydub.exceptions import CouldntDecodeError # type: ignore
......
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from mamba import describe, it, before # type: ignore
from robber import expect # type: ignore
......
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Splito --- Audio file splitter
# Copyright © 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
#
# This file is part of Splito.
#
# Splito is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Splito is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from typing import List, Tuple
from splito.use_cases.extract_sub_tracks import (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment