Skip to main content

A package to retrieve and sort DynamoDB posts by likes.

Project description

filteration-post

A Python package to retrieve all posts from a DynamoDB table and return them sorted by likes in descending order.

Build and Upload the Package to PyPI

ßßß

Prerequisites

  • Install twine and wheel setuptools:

    pip install twine wheel setuptools
    

Build the Package

In the root directory (ammar_filter_post/), run:

    python setup.py sdist bdist_wheel

Upload to PyPI First, create an account on PyPI if you haven't already.

    twine upload dist/*

You will be prompted to enter your PyPI username and password.

How to install the Library

pip install ammar_filter_post

How to use the Library

    import boto3
    from ammar_filter_post import get_posts_sorted_by_likes

    # Replace 'your-region' and 'YourTableName' with your actual AWS region and DynamoDB table name
    dynamodb = boto3.resource('dynamodb', region_name='your-region')
    table = dynamodb.Table('YourTableName')

    sorted_posts = get_posts_sorted_by_likes(table)

    for post in sorted_posts:
        print(post)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ammar_filter_post-1.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ammar_filter_post-1.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file ammar_filter_post-1.1.0.tar.gz.

File metadata

  • Download URL: ammar_filter_post-1.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for ammar_filter_post-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e8b3931f35863afe4d076acba37ab9302009c7ee8bfd9d12a8f22945c7788efe
MD5 a110524f490a5140a3a5a62b116cb81f
BLAKE2b-256 51b87f1322c42d58d42822ac598440153b522d0cf4eea39d6ab2f055d15456f7

See more details on using hashes here.

File details

Details for the file ammar_filter_post-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ammar_filter_post-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9dc5dbfc38d4ca804975a42c52bf5f0b364005db81830cc607f631414743988
MD5 88cacdc8e9ee4d776f281277c3b2eea1
BLAKE2b-256 9c0d3014825bb84357972422fd0a13d2133c084787e42f39b035b5ca7cfac23b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page