Skip to content

Commit

Permalink
v0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeutschler committed Sep 22, 2024
1 parent fcb3103 commit 27f9da2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 35 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# datespan - convenient data span parsing & handling
# datespan - effortless date span parsing and management

![GitHub license](https://img.shields.io/github/license/Zeutschler/datespan?color=A1C547)
![PyPI version](https://img.shields.io/pypi/v/datespan?logo=pypi&logoColor=979DA4&color=A1C547)
Expand All @@ -9,7 +9,7 @@
![codecov](https://codecov.io/github/Zeutschler/datespan/graph/badge.svg?token=B12O0B6F10)

-----------------
A Python package for convenient **data span** parsing and handling.
A Python package for effortless date span parsing and management.
Aimed for data analysis and processing, useful in any context requiring date & time spans.

```bash
Expand Down
2 changes: 1 addition & 1 deletion datespan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def parse(datespan_text: str, parser_info: parserinfo | None = None) -> DateSpa
The DateSpanSet instance contain 0 to N DateSpan objects derived from the given text.
Examples:
>>> DateSpanSet.evaluate('last month') # if today would be in February 2024
>>> DateSpanSet('last month') # if today would be 2024-02-12
DateSpanSet([DateSpan(datetime.datetime(2024, 1, 1, 0, 0), datetime.datetime(2024, 1, 31, 23, 59, 59, 999999))])
"""
return DateSpanSet(definition=datespan_text, parser_info=parser_info)
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "datespanlib"
description = "A library for handling date spans."
name = "datespan"
description = "Effortless date span parsing and management."
keywords = ['python', 'datetime', 'timespan', 'pandas', 'numpy', 'spark', 'data analysis', 'sql', 'dataframe', ]
classifiers = [
"Intended Audience :: Science/Research",
Expand Down Expand Up @@ -37,12 +37,12 @@ dependencies = [
]

[project.urls]
Homepage = "https://github.com/Zeutschler/DateSpanLib"
Documentation = "https://github.com/Zeutschler/DateSpanLib"
Repository = "https://github.com/Zeutschler/DateSpanLib.git"
Issues = "https://github.com/Zeutschler/DateSpanLib/issues"
Changelog = "https://github.com/Zeutschler/DateSpanLib/CHANGELOG.md"
pypi = "https://pypi.org/project/datespanlib/"
Homepage = "https://github.com/Zeutschler/datespan"
Documentation = "https://github.com/Zeutschler/datespan"
Repository = "https://github.com/Zeutschler/datespan.git"
Issues = "https://github.com/Zeutschler/datespan/issues"
Changelog = "https://github.com/Zeutschler/datespan/CHANGELOG.md"
pypi = "https://pypi.org/project/datespan/"

[tool.setuptools.dynamic]
version = {attr = "datespanlib.__version__"}
version = {attr = "datespan.__version__"}
29 changes: 6 additions & 23 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,40 +1,23 @@
# -*- coding: utf-8 -*-
# datespan - Copyright (c)2024, Thomas Zeutschler, MIT license
# setup.py for cubedpandas

from setuptools import setup
from setuptools import find_packages
from datespan import VERSION as DATESPANLIB_VERSION
from datespan import VERSION


# ...to run the build and deploy process to pypi.org manually:
# 1. delete folder 'build'
# 1. empty folder 'dist'
# 2. python3 setup.py sdist bdist_wheel # note: Wheel need to be installed: pip install wheel
# 3. twine upload -r pypi dist/* # note: Twine need to be installed: pip install twine

# ... via Github actions
# ... via GitHub actions see
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

VERSION = DATESPANLIB_VERSION
DESCRIPTION = "DateSpan - A date and time span parsing and utilization library for data analysis and processing"
DESCRIPTION = "datespan - effortless date span parsing and management"
LONG_DESCRIPTION = """
A Python library for handling and using data and time spans.
```python
from datespan import DateSpan
ds = DateSpan("January to March 2024")
print("2024-04-15" in ds + "1 month") # returns True
```
The DateSpanLib library is designed to be used for data analysis and data processing,
where date and time spans are often used to filter, aggregate or join data. But it
should also be valuable in any other context where date and time spans are used.
It provides dependency free integrations with Pandas, Numpy, Spark and others, can
generate Python code artefacts, either as source text or as precompiled (lambda)
functions and can also generate SQL fragments for filtering in SQL WHERE clauses.
A Python package for effortless date span parsing and management.
Aimed for data analysis and processing, useful in any context requiring date & time spans.
"""

setup(
Expand All @@ -49,7 +32,7 @@
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
"Development Status :: 2 - Pre-Alpha",
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Environment :: Console",
Expand Down

0 comments on commit 27f9da2

Please sign in to comment.