Skip to content

Commit

Permalink
shuffling name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Humble committed Nov 7, 2024
1 parent c6e92ee commit 4beb589
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 21 deletions.
8 changes: 1 addition & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/.pytest_cache
/.vscode
src/qspy/__pycache__/__init__.cpython-312.pyc
src/qspy/__pycache__/clublog.cpython-312.pyc
src/qspy/__pycache__/eqsl.cpython-312.pyc
src/qspy/__pycache__/logbook.cpython-312.pyc
src/qspy/__pycache__/lotw.cpython-312.pyc
src/qspy/__pycache__/test_pytest.cpython-312-pytest-8.3.3.pyc
src/qspy/__pycache__/qrz.cpython-312.pyc
/src/qspylib/__pycache__
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# QSPy

QSPy is a bundle of API wrappers for various amateur radio-related websites, including QRZ, LOTW, eQSL, and ClubLog.
# QSPyLib
QSPyLib is a bundle of API wrappers for various amateur radio-related websites, including QRZ, LOTW, eQSL, and ClubLog.

It is currently in development and should be considered unstable version-to-version while the version number is still 0.x.x.

Issues and pull requests are welcome, and should be made on this repository.
Issues and pull requests are welcome, and should be made on the [GitHub repository](https://github.com/jaytotheay/qspy).

## What works right now?

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "qspy"
name = "qspylib"
version = "0.0.1"
dependencies = [
"adif_io",
Expand All @@ -14,7 +14,7 @@ requires-python = ">=3.9"
authors = [
{ name="Jacob Humble", email="contact@jacobhumble.com" },
]
description = "Amateur radio website API wrappers"
description = "A set of amateur radio website API wrappers"
readme = "README.md"
keywords = ["QRZ", "LOTW", "eQSL", "API", "amateur radio"]
classifiers = [
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/qspy/clublog.py → src/qspylib/clublog.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import requests
from qspy.logbook import Logbook
from qspylib.logbook import Logbook

class ClubLogWrapper:
"""
Expand Down
4 changes: 2 additions & 2 deletions src/qspy/eqsl.py → src/qspylib/eqsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

from qspy.logbook import Logbook
from qspylib.logbook import Logbook
import requests

# functions that don't require authentication
Expand Down Expand Up @@ -98,7 +98,7 @@ def get_full_member_list(timeout: int = 15):
def get_users_data(callsign: str, timeout: int = 15):
"""
Returns a dict of data on a QRZ user, in the form of: GridSquare, AG, Last Upload
Note: Slow as balls. Would be faster with vectorization, but then we'd need dependencies.
Note: Slow. Would be faster with vectorization, but then we'd need dependencies.
"""
dict_users: dict = get_full_member_list()
return dict_users.get(callsign)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/qspy/lotw.py → src/qspylib/lotw.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import requests
from qspy.logbook import Logbook
from qspylib.logbook import Logbook

# exceptions

Expand Down
2 changes: 1 addition & 1 deletion src/qspy/qrz.py → src/qspylib/qrz.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import requests
import html
import xmltodict
from qspy.logbook import Logbook
from qspylib.logbook import Logbook

class QRZInvalidSession(Exception):
def __init__(self, message="Got no session key back. This session is invalid."):
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/qspy/test_pytest.py → src/qspylib/test_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

import pytest
import qspy.eqsl as eqsl
import qspy.lotw as lotw
import qspy.qrz as qrz
import qspylib.eqsl as eqsl
import qspylib.lotw as lotw
import qspylib.qrz as qrz

##############
# lotw tests #
Expand Down

0 comments on commit 4beb589

Please sign in to comment.